arudradey's picture
download
raw
646 Bytes
var path = require('path');
var test = require('tape');
var resolve = require('../');
test('precedence', function (t) {
t.plan(3);
var dir = path.join(__dirname, 'precedence/aaa');
resolve('./', { basedir: dir }, function (err, res, pkg) {
t.ifError(err);
t.equal(res, path.join(dir, 'index.js'));
t.equal(pkg.name, 'resolve');
});
});
test('./ should not load ${dir}.js', function (t) { // eslint-disable-line no-template-curly-in-string
t.plan(1);
var dir = path.join(__dirname, 'precedence/bbb');
resolve('./', { basedir: dir }, function (err, res, pkg) {
t.ok(err);
});
});

Xet Storage Details

Size:
646 Bytes
·
Xet hash:
80c2ed130ed28e093ee875bd8f3c5b7b911feb040eed2f7a359045605a4d15b9

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.