Require Node.js 12 and move to ESM
This commit is contained in:
parent
4dab5e1fb6
commit
fa16f4ec37
22 changed files with 362 additions and 412 deletions
|
|
@ -1,6 +1,5 @@
|
|||
import test from 'ava';
|
||||
|
||||
const chalk = require('../source');
|
||||
import chalk from '../source/index.js';
|
||||
|
||||
test('Chalk.constructor should throw an expected error', t => {
|
||||
const expectedError = t.throws(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue