Update _flow.js

This commit is contained in:
Sindre Sorhus 2018-12-28 12:25:28 +01:00 committed by GitHub
parent 99cf011a1e
commit d18dc309a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,10 @@ chalk.constructor({level: 1});
new chalk.constructor({enabled: 'true'});
new chalk.constructor({enabled: true});
// $ExpectError (Can't pass in null)
chalk.underline(null);
chalk.underline('foo');
// $ExpectError (Can't have typo in chalk method)
chalk.rd('foo');
chalk.red('foo');