Skip to content

Commit

Permalink
chore: Remove custom Windows tmpdir logic in test (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
sttk committed Jan 25, 2024
1 parent 7aeee5d commit 0a35a9e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions test/execution-errors.js
Expand Up @@ -43,13 +43,8 @@ describe('execution error', function() {
});

it('should output an error if gulp is not found', function(done) {
var tmpdir = os.tmpdir();
if (os.platform() === 'win32') {
var moveDrive = tmpdir.slice(0, 2);
exec(moveDrive + '& cd ' + tmpdir + ' & ' + gulp(), cb);
} else {
exec(gulp(), { cwd: tmpdir }, cb);
}
var opts = { cwd: os.tmpdir() };
exec(gulp(), opts, cb);

function cb(err, stdout, stderr) {
expect(err).not.toBeNull();
Expand Down

0 comments on commit 0a35a9e

Please sign in to comment.