faulty_basedir.js 429 B

1234567891011121314151617
  1. var path = require('path');
  2. var test = require('tape');
  3. var resolve = require('../');
  4. // not sure what's up with this test anymore
  5. if (process.platform !== 'win32') return;
  6. test('faulty basedir must produce error in windows', function (t) {
  7. t.plan(1);
  8. var resolverDir = 'C:\\a\\b\\c\\d';
  9. resolve('tape/lib/test.js', { basedir : resolverDir }, function (err, res, pkg) {
  10. t.equal(true, !!err);
  11. });
  12. });