Skip to content

Commit

Permalink
Attempt to fix tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Mar 19, 2017
1 parent 90529ec commit 49a3e51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ test('async: #121 - treating an existing file as a dir when no basedir', functio
t.test('with a trailing slash', function (st) {
st.plan(4);

resolve('./' + testFile + '/', function (err, res, pkg) {
resolve('./' + testFile + path.sep, function (err, res, pkg) {
st.ok(err, 'there is an error');
st.notOk(res, 'no result');

Expand Down
2 changes: 1 addition & 1 deletion test/resolver_sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ test('sync: #121 - treating an existing file as a dir when no basedir', function
});

t.test('with a trailing slash', function (st) {
function run() { return resolve.sync('./' + testFile + '/'); }
function run() { return resolve.sync('./' + testFile + path.sep); }

st.throws(run, 'throws an error');

Expand Down

0 comments on commit 49a3e51

Please sign in to comment.