summaryrefslogtreecommitdiff
path: root/test/parallel/test-promises-unhandled-rejections.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-promises-unhandled-rejections.js')
-rw-r--r--test/parallel/test-promises-unhandled-rejections.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-promises-unhandled-rejections.js b/test/parallel/test-promises-unhandled-rejections.js
index fb2404a990..7a367920b0 100644
--- a/test/parallel/test-promises-unhandled-rejections.js
+++ b/test/parallel/test-promises-unhandled-rejections.js
@@ -12,11 +12,11 @@ const asyncTest = (function() {
function fail(error) {
const stack = currentTest ?
- error.stack + '\nFrom previous event:\n' + currentTest.stack :
+ `${error.stack}\nFrom previous event:\n${currentTest.stack}` :
error.stack;
if (currentTest)
- process.stderr.write('\'' + currentTest.description + '\' failed\n\n');
+ process.stderr.write(`'${currentTest.description}' failed\n\n`);
process.stderr.write(stack);
process.exit(2);