Skip to content

Commit 612cac2

Browse files
author
James Halliday
committed
another test, not quite the failing case
1 parent 7496374 commit 612cac2

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

test/subdirs.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
var test = require('tape');
2+
var resolve = require('../');
3+
var path = require('path');
4+
5+
test('subdirs', function (t) {
6+
t.plan(2);
7+
8+
var dir = path.join(__dirname, '/subdirs');
9+
resolve('a/b/c/x.json', { basedir: dir }, function (err, res) {
10+
t.ifError(err);
11+
t.equal(res, path.join(dir, 'node_modules/a/b/c/x.json'));
12+
});
13+
});

test/subdirs/node_modules/a/b/c/x.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/subdirs/node_modules/a/package.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)