Skip to content

Commit

Permalink
failing sync dotdot test
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jul 25, 2014
1 parent 3ee0f0e commit 55515e7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/dotdot.js
Expand Up @@ -16,3 +16,14 @@ test('dotdot', function (t) {
t.equal(res, dir + '/index.js');
});
});

test('dotdot sync', function (t) {
t.plan(2);
var dir = __dirname + '/dotdot/abc';

var a = resolve.sync('..', { basedir : dir });
t.equal(a, __dirname + '/dotdot/index.js');

var b = resolve.sync('.', { basedir : dir });
t.equal(b, dir + '/index.js');
});

0 comments on commit 55515e7

Please sign in to comment.