summaryrefslogtreecommitdiff
path: root/test/async-hooks
diff options
context:
space:
mode:
authorvercent deng <vercent.deng.lqy@gmail.com>2017-07-16 15:44:00 +0800
committerRich Trott <rtrott@gmail.com>2017-07-17 05:56:51 -0700
commit25f27b787e804585b59d7d30df37fed63412bbb8 (patch)
treeaad050583bbdad0010982b18234f266697a38f77 /test/async-hooks
parent2bbeec73af537cb8c62a31067b13d5c9219e926c (diff)
downloadandroid-node-v8-25f27b787e804585b59d7d30df37fed63412bbb8.tar.gz
android-node-v8-25f27b787e804585b59d7d30df37fed63412bbb8.tar.bz2
android-node-v8-25f27b787e804585b59d7d30df37fed63412bbb8.zip
test: use template literals in test-writewrap
Use template literals instead of string concatenation in test/async-hooks/test-writewrap.js. PR-URL: https://github.com/nodejs/node/pull/14292 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'test/async-hooks')
-rw-r--r--test/async-hooks/test-writewrap.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/async-hooks/test-writewrap.js b/test/async-hooks/test-writewrap.js
index eca0d08f10..274972e3ee 100644
--- a/test/async-hooks/test-writewrap.js
+++ b/test/async-hooks/test-writewrap.js
@@ -18,8 +18,8 @@ hooks.enable();
//
const server = tls
.createServer({
- cert: fs.readFileSync(common.fixturesDir + '/test_cert.pem'),
- key: fs.readFileSync(common.fixturesDir + '/test_key.pem')
+ cert: fs.readFileSync(`${common.fixturesDir}/test_cert.pem`),
+ key: fs.readFileSync(`${common.fixturesDir}/test_key.pem`)
})
.on('listening', common.mustCall(onlistening))
.on('secureConnection', common.mustCall(onsecureConnection))