Update error message

This commit is contained in:
Tom Sherman 2019-03-12 12:42:04 +00:00
parent 39037cb258
commit fc504931b4

View file

@ -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