Skip to content

Commit 707e50a

Browse files
committed
update tests in async-hooks/test-tlswrap.js to just path.join istead of template literals
1 parent 4d8489d commit 707e50a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/async-hooks/test-tlswrap.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const common = require('../common');
44
if (!common.hasCrypto)
55
common.skip('missing crypto');
66

7+
const path = require('path');
78
const assert = require('assert');
89
const tick = require('./tick');
910
const initHooks = require('./init-hooks');
@@ -19,8 +20,8 @@ hooks.enable();
1920
//
2021
const server = tls
2122
.createServer({
22-
cert: fs.readFileSync(`${common.fixturesDir}/test_cert.pem`),
23-
key: fs.readFileSync(`${common.fixturesDir}/test_key.pem`)
23+
cert: fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem')),
24+
key: fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem'))
2425
})
2526
.on('listening', common.mustCall(onlistening))
2627
.on('secureConnection', common.mustCall(onsecureConnection))

0 commit comments

Comments
 (0)