Sha256: 921114ea6cfcf3724399b02f038db3a2686cbdbe3978726e96e966e304c1177c
Contents?: true
Size: 363 Bytes
Versions: 27
Compression:
Stored size: 363 Bytes
Contents
var test = require('tap').test; var resolve = require('../'); test('filter', function (t) { var dir = __dirname + '/resolver'; var res = resolve.sync('./baz', { basedir : dir, packageFilter : function (pkg) { pkg.main = 'doom' return pkg; } }); t.equal(res, dir + '/baz/doom.js'); t.end(); });
Version data entries
27 entries across 17 versions & 6 rubygems