diff options
Diffstat (limited to 'node_modules/resolve/test/resolver_sync.js')
-rw-r--r-- | node_modules/resolve/test/resolver_sync.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/node_modules/resolve/test/resolver_sync.js b/node_modules/resolve/test/resolver_sync.js index 2bc361020..8e33dca69 100644 --- a/node_modules/resolve/test/resolver_sync.js +++ b/node_modules/resolve/test/resolver_sync.js @@ -251,3 +251,17 @@ test('sync: #121 - treating an existing file as a dir when no basedir', function t.end(); }); + +test('sync dot main', function (t) { + var start = new Date(); + t.equal(resolve.sync('./resolver/dot_main'), path.join(__dirname, 'resolver/dot_main/index.js')); + t.ok(new Date() - start < 50, 'resolve.sync timedout'); + t.end(); +}); + +test('sync dot slash main', function (t) { + var start = new Date(); + t.equal(resolve.sync('./resolver/dot_slash_main'), path.join(__dirname, 'resolver/dot_slash_main/index.js')); + t.ok(new Date() - start < 50, 'resolve.sync timedout'); + t.end(); +}); |