diff --git a/test/resolver.js b/test/resolver.js index 4bcd6ceb..b6eb1f23 100644 --- a/test/resolver.js +++ b/test/resolver.js @@ -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'); diff --git a/test/resolver_sync.js b/test/resolver_sync.js index 39bd58f8..17b183cb 100644 --- a/test/resolver_sync.js +++ b/test/resolver_sync.js @@ -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');