Update checked-in dependencies
This commit is contained in:
parent
6b0d45a5c6
commit
cc1adb825a
4247 changed files with 144820 additions and 149530 deletions
16
node_modules/resolve/test/shadowed_core.js
generated
vendored
16
node_modules/resolve/test/shadowed_core.js
generated
vendored
|
|
@ -36,3 +36,19 @@ test('shadowed core modules return shadow when appending `/` [sync]', function (
|
|||
t.equal(res, path.join(__dirname, 'shadowed_core/node_modules/util/index.js'));
|
||||
});
|
||||
|
||||
test('shadowed core modules return shadow with `includeCoreModules: false`', function (t) {
|
||||
t.plan(2);
|
||||
|
||||
resolve('util', { basedir: path.join(__dirname, 'shadowed_core'), includeCoreModules: false }, function (err, res) {
|
||||
t.ifError(err);
|
||||
t.equal(res, path.join(__dirname, 'shadowed_core/node_modules/util/index.js'));
|
||||
});
|
||||
});
|
||||
|
||||
test('shadowed core modules return shadow with `includeCoreModules: false` [sync]', function (t) {
|
||||
t.plan(1);
|
||||
|
||||
var res = resolve.sync('util', { basedir: path.join(__dirname, 'shadowed_core'), includeCoreModules: false });
|
||||
|
||||
t.equal(res, path.join(__dirname, 'shadowed_core/node_modules/util/index.js'));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue