Skip to content

Commit

Permalink
Fix: Improve child_process.spawn test for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Jun 23, 2016
1 parent f0866cc commit 414df3d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/integration.js
Expand Up @@ -2,6 +2,7 @@

var expect = require('expect');

var os = require('os');
var fs = require('fs');
var path = require('path');
var vinyl = require('vinyl-fs');
Expand All @@ -14,6 +15,8 @@ var through = require('through2');

var Undertaker = require('../');

var isWindows = (os.platform() === 'win32');

describe('integrations', function() {

var taker;
Expand Down Expand Up @@ -51,6 +54,10 @@ describe('integrations', function() {

it('should handle a child process return', function(done) {
taker.task('test', function() {
if (isWindows) {
return spawn('cmd', ['/c', 'dir']);
}

return spawn('ls', ['-lh', __dirname]);
});

Expand Down

0 comments on commit 414df3d

Please sign in to comment.