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);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import test from 'ava';
|
||||
const test = require('ava');
|
||||
|
||||
const chalk = require('../source');
|
||||
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import path from 'path';
|
||||
import test from 'ava';
|
||||
import execa from 'execa';
|
||||
const path = require('path');
|
||||
const test = require('ava');
|
||||
const execa = require('execa');
|
||||
|
||||
// Spoof supports-color
|
||||
require('./_supports-color')(__dirname);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import test from 'ava';
|
||||
const test = require('ava');
|
||||
|
||||
// Spoof supports-color
|
||||
require('./_supports-color')(__dirname, {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/* eslint-disable unicorn/no-hex-escape */
|
||||
import test from 'ava';
|
||||
const test = require('ava');
|
||||
|
||||
// Spoof supports-color
|
||||
require('./_supports-color')(__dirname);
|
||||
|
|
@ -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 => {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import test from 'ava';
|
||||
const test = require('ava');
|
||||
|
||||
// Spoof supports-color
|
||||
require('./_supports-color')(__dirname);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue