From 7faf457153a0b7c17acc59c0eb987781bc95fa5b Mon Sep 17 00:00:00 2001 From: Justin Searls Date: Fri, 23 Mar 2018 15:18:22 -0400 Subject: [PATCH] Delete the two tests added for issue #25 These are obviated by the shadowed_core test added in #148 --- test/resolver.js | 11 ----------- test/resolver_sync.js | 11 ----------- 2 files changed, 22 deletions(-) diff --git a/test/resolver.js b/test/resolver.js index b82927b2..116bb242 100644 --- a/test/resolver.js +++ b/test/resolver.js @@ -268,17 +268,6 @@ test('without basedir', function (t) { }); }); -test('#25: node modules with the same name as node stdlib modules', function (t) { - t.plan(1); - - var resolverDir = path.join(__dirname, 'resolver/punycode'); - - resolve('punycode', { basedir: resolverDir }, function (err, res, pkg) { - if (err) t.fail(err); - t.equal(res, path.join(resolverDir, 'node_modules/punycode/index.js')); - }); -}); - test('#52 - incorrectly resolves module-paths like "./someFolder/" when there is a file of the same name', function (t) { t.plan(2); diff --git a/test/resolver_sync.js b/test/resolver_sync.js index 4a4fd477..5b8057fe 100644 --- a/test/resolver_sync.js +++ b/test/resolver_sync.js @@ -168,17 +168,6 @@ test('incorrect main', function (t) { t.end(); }); -test('#25: node modules with the same name as node stdlib modules', function (t) { - var resolverDir = path.join(__dirname, 'resolver/punycode'); - - t.equal( - resolve.sync('punycode', { basedir: resolverDir }), - path.join(resolverDir, 'node_modules/punycode/index.js') - ); - - t.end(); -}); - var stubStatSync = function stubStatSync(fn) { var fs = require('fs'); var statSync = fs.statSync;