Update error message
This commit is contained in:
parent
39037cb258
commit
fc504931b4
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ test('Chalk.constructor should throw an expected error', t => {
|
|||
chalk.constructor();
|
||||
});
|
||||
|
||||
t.is(expectedError.message, 'Chalk.constructor() is deprecated. Use new Chalk.Instance() instead.');
|
||||
t.is(expectedError.message, '`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.');
|
||||
|
||||
t.throws(() => {
|
||||
new chalk.constructor(); // eslint-disable-line no-new
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue