Skip to content

Commit

Permalink
update test/double_end.js to use path.join for cross-platform compati…
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Sep 2, 2016
1 parent eb30f50 commit e3115ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/double_end.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
var test = require('tap').test;
var path = require('path');
var concat = require('concat-stream');
var spawn = require('child_process').spawn;

test(function (t) {
t.plan(2);
var ps = spawn(process.execPath, [ __dirname + '/double_end/double.js' ]);
var ps = spawn(process.execPath, [path.join(__dirname, 'double_end', 'double.js')]);
ps.on('exit', function (code) {
t.equal(code, 1);
});
Expand Down

0 comments on commit e3115ff

Please sign in to comment.