Skip to content

Commit 49a3e51

Browse files
committed
Attempt to fix tests on Windows
1 parent 90529ec commit 49a3e51

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/resolver.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ test('async: #121 - treating an existing file as a dir when no basedir', functio
293293
t.test('with a trailing slash', function (st) {
294294
st.plan(4);
295295

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

test/resolver_sync.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ test('sync: #121 - treating an existing file as a dir when no basedir', function
217217
});
218218

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

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

0 commit comments

Comments
 (0)