From d18dc309a1b40f87d4ab5bef7240b65eb3e75899 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 28 Dec 2018 12:25:28 +0100 Subject: [PATCH] Update _flow.js --- test/_flow.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/_flow.js b/test/_flow.js index 4444a5e..3d52876 100644 --- a/test/_flow.js +++ b/test/_flow.js @@ -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');