forked from orbit-oss/chalk
Update test dependencies (#414)
This commit is contained in:
parent
b31d6fb48a
commit
c0d8e7ed8a
7 changed files with 49 additions and 47 deletions
|
|
@ -17,10 +17,10 @@ test('the `level` option should be a number from 0 to 3', t => {
|
|||
/* eslint-disable no-new */
|
||||
t.throws(() => {
|
||||
new chalk.Instance({level: 10});
|
||||
}, /should be an integer from 0 to 3/);
|
||||
}, {message: /should be an integer from 0 to 3/});
|
||||
|
||||
t.throws(() => {
|
||||
new chalk.Instance({level: -1});
|
||||
}, /should be an integer from 0 to 3/);
|
||||
}, {message: /should be an integer from 0 to 3/});
|
||||
/* eslint-enable no-new */
|
||||
});
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ test('throws if an extra unescaped } is found', t => {
|
|||
|
||||
test('should not parse upper-case escapes', t => {
|
||||
const instance = new chalk.Instance({level: 0});
|
||||
t.is(instance`\N\n\T\t\X07\x07\U000A\u000A\U000a\u000a`, 'N\nT\tX07\x07U000A\u000AU000a\u000A');
|
||||
t.is(instance`\N\n\T\t\X07\x07\U000A\u000A\U000a\u000A`, 'N\nT\tX07\x07U000A\u000AU000a\u000A');
|
||||
});
|
||||
|
||||
test('should properly handle undefined template interpolated values', t => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue