Add tests

This commit is contained in:
Tom Sherman 2019-01-26 21:53:23 +00:00
parent 08f9e5f3e3
commit 6768476575
7 changed files with 82 additions and 67 deletions

View file

@ -16,8 +16,8 @@ expectType<boolean>(chalk.supportsColor.has256);
expectType<boolean>(chalk.supportsColor.has16m);
// - Chalk -
// -- Constructor --
expectType<Chalk>(new chalk.constructor({level: 1}));
// -- Instance --
expectType<Chalk>(new chalk.instance({level: 1}));
// -- Properties --
expectType<boolean>(chalk.enabled);