From baca83c59361a6fb3baf5f5e0ef967c9eb80e124 Mon Sep 17 00:00:00 2001 From: mkls Date: Wed, 7 Sep 2016 00:20:03 +0200 Subject: [PATCH] Fix for unit tests on windows --- test/require.js | 2 +- test/require/a.js | 2 +- test/require/b.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/require.js b/test/require.js index bad5d648..6b05a000 100644 --- a/test/require.js +++ b/test/require.js @@ -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 }) } \ No newline at end of file diff --git a/test/require/a.js b/test/require/a.js index 0947b7b9..b2dd811b 100644 --- a/test/require/a.js +++ b/test/require/a.js @@ -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 \ No newline at end of file diff --git a/test/require/b.js b/test/require/b.js index 18942e0c..2206c17c 100644 --- a/test/require/b.js +++ b/test/require/b.js @@ -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 \ No newline at end of file