mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-28 21:24:26 +08:00
DISABLE_THIRD_PARTY_CHECK=Add NPM dependency R=vidorteg@microsoft.com Change-Id: I3fb90b1f4c661125a1b71129fdc45c688dc018ff Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2279833 Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org> Commit-Queue: Vidal Diazleal <vidorteg@microsoft.com> Reviewed-by: Vidal Diazleal <vidorteg@microsoft.com>
14 lines
353 B
JavaScript
14 lines
353 B
JavaScript
var test = require('tape');
|
|
var resolve = require('../');
|
|
var path = require('path');
|
|
|
|
test('subdirs', function (t) {
|
|
t.plan(2);
|
|
|
|
var dir = path.join(__dirname, '/subdirs');
|
|
resolve('a/b/c/x.json', { basedir: dir }, function (err, res) {
|
|
t.ifError(err);
|
|
t.equal(res, path.join(dir, 'node_modules/a/b/c/x.json'));
|
|
});
|
|
});
|