diff options
author | vercent deng <vercent.deng.lqy@gmail.com> | 2017-07-16 15:44:00 +0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-07-17 05:56:51 -0700 |
commit | 25f27b787e804585b59d7d30df37fed63412bbb8 (patch) | |
tree | aad050583bbdad0010982b18234f266697a38f77 /test | |
parent | 2bbeec73af537cb8c62a31067b13d5c9219e926c (diff) | |
download | node-new-25f27b787e804585b59d7d30df37fed63412bbb8.tar.gz |
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')
-rw-r--r-- | test/async-hooks/test-writewrap.js | 4 |
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)) |