wallet-core/node_modules/resolve/test/faulty_basedir.js

14 lines
352 B
JavaScript
Raw Normal View History

2016-10-10 03:43:44 +02:00
var test = require('tape');
var resolve = require('../');
2017-05-28 00:38:50 +02:00
test('faulty basedir must produce error in windows', { skip: process.platform !== 'win32' }, function (t) {
2016-10-10 03:43:44 +02:00
t.plan(1);
var resolverDir = 'C:\\a\\b\\c\\d';
2017-05-28 00:38:50 +02:00
resolve('tape/lib/test.js', { basedir: resolverDir }, function (err, res, pkg) {
2016-10-10 03:43:44 +02:00
t.equal(true, !!err);
});
});