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