Skip to content

Commit

Permalink
update tests in async-hooks/test-tlswrap.js to just path.join istead …
Browse files Browse the repository at this point in the history
…of template literals
  • Loading branch information
vincentcn committed Jul 17, 2017
1 parent 4d8489d commit 707e50a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/async-hooks/test-tlswrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');

const path = require('path');
const assert = require('assert');
const tick = require('./tick');
const initHooks = require('./init-hooks');
Expand All @@ -19,8 +20,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(path.join(common.fixturesDir, 'test_cert.pem')),
key: fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem'))
})
.on('listening', common.mustCall(onlistening))
.on('secureConnection', common.mustCall(onsecureConnection))
Expand Down

0 comments on commit 707e50a

Please sign in to comment.