Update template-literal.js

This commit is contained in:
Sindre Sorhus 2019-07-12 13:34:49 +07:00 committed by GitHub
parent d348c6f94a
commit 46bd827e6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -169,7 +169,7 @@ test('should properly handle undefined template interpolated values', t => {
t.is(instance`hello ${null}`, 'hello null');
});
test('should allow bracketed unicode escapes', t => {
test('should allow bracketed Unicode escapes', t => {
const instance = new chalk.Instance({level: 3});
t.is(instance`\u{AB}`, '\u{AB}');
t.is(instance`This is a {bold \u{AB681}} test`, 'This is a \u001B[1m\u{AB681}\u001B[22m test');