Skip to content

Commit 985ac20

Browse files
committed
fix(windows): fix shjs tests for windows
1 parent 7d6249a commit 985ac20

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/shjs.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ var path = require('path');
33
var assert = require('assert');
44

55
function runScript(name) {
6-
return shell.exec(path.resolve(__dirname, '../bin/shjs') +
6+
// prefix with 'node ' for Windows, don't prefix for OSX/Linux
7+
return shell.exec((process.platform === 'win32' ? 'node ' : '') +
8+
path.resolve(__dirname, '../bin/shjs') +
79
' ' +
810
path.resolve(__dirname, 'resources', 'shjs', name), { silent: true });
911
}

0 commit comments

Comments
 (0)