Skip to content

Commit

Permalink
Fixed test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
mantoni committed Feb 12, 2012
1 parent 2e42933 commit 108dfb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test-module-resolve.js
Expand Up @@ -11,15 +11,15 @@ test('module.resolve', {

var path = m.resolve('a');

assert.equal(path, 'a.js');
assert.equal(path, 'test/fixture/a.js');
},

'should find module for relative path': function () {
var m = module('test/fixture');

var path = m.resolve('./lib/b');

assert.equal(path, 'lib/b.js');
assert.equal(path, 'test/fixture/lib/b.js');
},

'should throw if file does not exit': function () {
Expand All @@ -43,7 +43,7 @@ test('module.resolve', {

var path = m.resolve('c/c.js');

assert.equal(path, 'node_modules/c/c.js');
assert.equal(path, 'test/fixture/node_modules/c/c.js');
}

});

0 comments on commit 108dfb7

Please sign in to comment.