Skip to content

Commit

Permalink
change expected error code in response to OS
Browse files Browse the repository at this point in the history
  • Loading branch information
shinnn committed Mar 2, 2015
1 parent b98f6ea commit 587036f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,12 @@ describe('gulp-gh-pages', function() {
cacheDir: __filename
})
.on('error', function(err) {
assert.equal(err.code, 'ENOTDIR');
var expected = 'ENOTDIR';
/* istanbul ignore if */
if (process.platform === 'win32') {
expected = 'EEXIST';
}
assert.equal(err.code, expected);
done();
})
.end(tmpFile);
Expand Down

0 comments on commit 587036f

Please sign in to comment.