Skip to content

Commit

Permalink
add 'node' to exec command to fix windows issue
Browse files Browse the repository at this point in the history
  • Loading branch information
heikki committed Dec 28, 2014
1 parent 9c71562 commit 7b1007e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/flags-task-simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var output = fs.readFileSync(__dirname + '/expected/flags-tasks-simple.txt', 'ut
lab.experiment('flag: --tasks-simple', function () {

lab.test('prints the task list', function (done) {
child.exec(__dirname + '/../index.js --tasks-simple --cwd ./test', function(err, stdout) {
child.exec('node ' + __dirname + '/../index.js --tasks-simple --cwd ./test', function(err, stdout) {
code.expect(stdout).to.equal(output);
done(err);
});
Expand Down
2 changes: 1 addition & 1 deletion test/flags-tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var child = require('child_process');
lab.experiment('flag: --tasks', function () {

lab.test('prints the task list', function (done) {
child.exec(__dirname + '/../index.js --tasks --cwd ./test', function(err, stdout) {
child.exec('node ' + __dirname + '/../index.js --tasks --cwd ./test', function(err, stdout) {
code.expect(stdout).to.contain('/gulp-cli/test');
code.expect(stdout).to.contain('├── test1');
code.expect(stdout).to.contain('├── test2');
Expand Down
2 changes: 1 addition & 1 deletion test/flags-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var gulpVersion = require('gulp/package.json').version;
lab.experiment('flag: --version', function () {

lab.test('prints the task list', function (done) {
child.exec(__dirname + '/../index.js --version --cwd ./test', function(err, stdout) {
child.exec('node ' + __dirname + '/../index.js --version --cwd ./test', function(err, stdout) {
code.expect(stdout).to.contain('CLI version ' + cliVersion);
code.expect(stdout).to.contain('Local version ' + gulpVersion);
done(err);
Expand Down

0 comments on commit 7b1007e

Please sign in to comment.