forked from orbit-oss/chalk
Change the TypeScript Level type to be a union instead of enum
Fixes #373 Fixes #382
This commit is contained in:
parent
7f21f209da
commit
f0f4638a92
4 changed files with 23 additions and 54 deletions
|
|
@ -43,15 +43,3 @@ test('disable colors if they are not supported', async t => {
|
|||
const {stdout} = await execa.node(path.join(__dirname, '_fixture'));
|
||||
t.is(stdout, 'testout testerr');
|
||||
});
|
||||
|
||||
test('chalk.Level enum object', t => {
|
||||
const {Level} = chalk;
|
||||
t.is(Level.None, 0);
|
||||
t.is(Level.Basic, 1);
|
||||
t.is(Level.Ansi256, 2);
|
||||
t.is(Level.TrueColor, 3);
|
||||
t.is(Level[Level.None], 'None');
|
||||
t.is(Level[Level.Basic], 'Basic');
|
||||
t.is(Level[Level.Ansi256], 'Ansi256');
|
||||
t.is(Level[Level.TrueColor], 'TrueColor');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue