Skip to content

Commit

Permalink
Fix for unit tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mkls committed Sep 6, 2016
1 parent 7536fba commit baca83c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/require.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ function tape(args) {
var proc = require('child_process')
var bin = __dirname + '/../bin/tape'

return proc.spawn(bin, args.split(' '), { cwd: __dirname })
return proc.spawn('node', [bin].concat(args.split(' ')), { cwd: __dirname })
}
2 changes: 1 addition & 1 deletion test/require/a.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var tape = require('../..');

tape.test('module-a', function(t) {
t.plan(1)
t.pass('loaded module a')
t.end()
})

global.module_a = true
2 changes: 1 addition & 1 deletion test/require/b.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var tape = require('../..');

tape.test('module-b', function(t) {
t.plan(1)
t.pass('loaded module b')
t.end()
})

global.module_b = true

0 comments on commit baca83c

Please sign in to comment.