diff options
author | sreepurnajasti <sreepurna.jasti@gmail.com> | 2018-01-10 15:05:15 +0530 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2018-01-17 08:50:02 +0800 |
commit | e08cf1d2309fb4368f11277e7021fa6d63790b9d (patch) | |
tree | 228906a7a5cc97cb1a810d8de4e4eefc8531a64e /test/parallel/test-http-outgoing-finish.js | |
parent | d3600e513ae277534e9a37b51489ec8584fbf3dc (diff) | |
download | android-node-v8-e08cf1d2309fb4368f11277e7021fa6d63790b9d.tar.gz android-node-v8-e08cf1d2309fb4368f11277e7021fa6d63790b9d.tar.bz2 android-node-v8-e08cf1d2309fb4368f11277e7021fa6d63790b9d.zip |
test: improve to use template string
PR-URL: https://github.com/nodejs/node/pull/18097
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'test/parallel/test-http-outgoing-finish.js')
-rw-r--r-- | test/parallel/test-http-outgoing-finish.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-http-outgoing-finish.js b/test/parallel/test-http-outgoing-finish.js index a242a4728e..c805a89cc1 100644 --- a/test/parallel/test-http-outgoing-finish.js +++ b/test/parallel/test-http-outgoing-finish.js @@ -58,19 +58,19 @@ function write(out) { // that 'finish' isn't emitted until the stream is fully flushed. out.on('finish', function() { finishEvent = true; - console.error('%s finish event', name); + console.error(`${name} finish event`); process.nextTick(function() { assert(endCb, `${name} got finish event before endcb!`); - console.log('ok - %s finishEvent', name); + console.log(`ok - ${name} finishEvent`); }); }); out.end(buf, function() { endCb = true; - console.error('%s endCb', name); + console.error(`${name} endCb`); process.nextTick(function() { assert(finishEvent, `${name} got endCb event before finishEvent!`); - console.log('ok - %s endCb', name); + console.log(`ok - ${name} endCb`); }); }); } |