Skip to content

Commit

Permalink
test: replace string concatenation with path.join
Browse files Browse the repository at this point in the history
  • Loading branch information
jkzing committed Jul 18, 2017
1 parent 5d3609d commit a32f3e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/async-hooks/test-graph.tls-write.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const initHooks = require('./init-hooks');
const verifyGraph = require('./verify-graph');
const fs = require('fs');
const tls = require('tls');
const path = require('path');

const hooks = initHooks();
hooks.enable();
Expand All @@ -20,8 +21,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 a32f3e8

Please sign in to comment.