Skip to content

Commit 9257e7e

Browse files
vercentdengaddaleax
authored andcommitted
test: use template literals in test-writewrap
Use template literals instead of string concatenation in test/async-hooks/test-writewrap.js. PR-URL: #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>
1 parent f5e8342 commit 9257e7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/async-hooks/test-writewrap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ hooks.enable();
1818
//
1919
const server = tls
2020
.createServer({
21-
cert: fs.readFileSync(common.fixturesDir + '/test_cert.pem'),
22-
key: fs.readFileSync(common.fixturesDir + '/test_key.pem')
21+
cert: fs.readFileSync(`${common.fixturesDir}/test_cert.pem`),
22+
key: fs.readFileSync(`${common.fixturesDir}/test_key.pem`)
2323
})
2424
.on('listening', common.mustCall(onlistening))
2525
.on('secureConnection', common.mustCall(onsecureConnection))

0 commit comments

Comments
 (0)