Skip to content

Commit

Permalink
passing baz test to check package.json resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jun 18, 2011
1 parent eda2247 commit 410635e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/resolver.js
Expand Up @@ -27,3 +27,12 @@ exports.bar = function () {
dir + '/bar/node_modules/foo/index.js'
);
};

exports.baz = function () {
var dir = __dirname + '/resolver';

assert.equal(
resolve.sync('./baz', { basedir : dir }),
dir + '/baz/quux.js'
);
};

0 comments on commit 410635e

Please sign in to comment.