Skip to content

Commit 0a35a9e

Browse files
authored
chore: Remove custom Windows tmpdir logic in test (#252)
1 parent 7aeee5d commit 0a35a9e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

test/execution-errors.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,8 @@ describe('execution error', function() {
4343
});
4444

4545
it('should output an error if gulp is not found', function(done) {
46-
var tmpdir = os.tmpdir();
47-
if (os.platform() === 'win32') {
48-
var moveDrive = tmpdir.slice(0, 2);
49-
exec(moveDrive + '& cd ' + tmpdir + ' & ' + gulp(), cb);
50-
} else {
51-
exec(gulp(), { cwd: tmpdir }, cb);
52-
}
46+
var opts = { cwd: os.tmpdir() };
47+
exec(gulp(), opts, cb);
5348

5449
function cb(err, stdout, stderr) {
5550
expect(err).not.toBeNull();

0 commit comments

Comments
 (0)