test: replace string concat with template literal
Replace the string concat at test/addons-napi/test_reference/test.js. PR-URL: https://github.com/nodejs/node/pull/14269 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
35398af68e
commit
e3f7a54d0a
@ -22,7 +22,7 @@ function runTests(i, title, tests) {
|
|||||||
try {
|
try {
|
||||||
tests[i]();
|
tests[i]();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('Test failed: ' + title);
|
console.error(`Test failed: ${title}`);
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
setImmediate(() => {
|
setImmediate(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user