Skip to content

Commit

Permalink
Fix path.sep override
Browse files Browse the repository at this point in the history
if not in a `before` callback the value is overridden before any of the
tests run
  • Loading branch information
es128 committed Apr 22, 2015
1 parent a815d70 commit 12d511c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ describe('anymatch', function() {

describe('windows paths', function() {
var origSep = path.sep;
path.sep = '\\';

before(function() {
path.sep = '\\';
});

after(function() {
path.sep = origSep;
Expand Down

0 comments on commit 12d511c

Please sign in to comment.