faulty_basedir.js 352 B

12345678910111213
  1. var test = require('tape');
  2. var resolve = require('../');
  3. test('faulty basedir must produce error in windows', { skip: process.platform !== 'win32' }, function (t) {
  4. t.plan(1);
  5. var resolverDir = 'C:\\a\\b\\c\\d';
  6. resolve('tape/lib/test.js', { basedir: resolverDir }, function (err, res, pkg) {
  7. t.equal(true, !!err);
  8. });
  9. });