Update test dependencies
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
This commit is contained in:
parent
445092f9af
commit
5be1773244
11 changed files with 59 additions and 56 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import test from 'ava';
|
||||
const test = require('ava');
|
||||
|
||||
// Spoof supports-color
|
||||
require('./_supports-color')(__dirname);
|
||||
|
|
@ -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 */
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue