Update test dependencies

Signed-off-by: Richie Bendall <richiebendall@gmail.com>
This commit is contained in:
Richie Bendall 2020-10-03 23:34:47 +13:00
parent 445092f9af
commit 5be1773244
No known key found for this signature in database
GPG key ID: 1C6A99DFA9D306FC
11 changed files with 59 additions and 56 deletions

View file

@ -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 */
});