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

Version Path
entangled-0.0.16 spec/dummy/public/node_modules/grunt-cli/node_modules/resolve/test/filter_sync.js
entangled-0.0.15 spec/dummy/public/node_modules/grunt-cli/node_modules/resolve/test/filter_sync.js
entangled-0.0.14 spec/dummy/public/node_modules/grunt-cli/node_modules/resolve/test/filter_sync.js
entangled-0.0.13 spec/dummy/public/node_modules/grunt-cli/node_modules/resolve/test/filter_sync.js
entangled-0.0.12 spec/dummy/public/node_modules/grunt-cli/node_modules/resolve/test/filter_sync.js
entangled-0.0.11 spec/dummy/public/node_modules/grunt-cli/node_modules/resolve/test/filter_sync.js
entangled-0.0.10 spec/dummy/public/node_modules/grunt-cli/node_modules/resolve/test/filter_sync.js
trans-0.5.10 template/node_modules/gulp/node_modules/liftoff/node_modules/resolve/test/filter_sync.js
trans-0.5.9 template/node_modules/gulp/node_modules/liftoff/node_modules/resolve/test/filter_sync.js
snowball-0.1.22 node_modules/browserify/node_modules/resolve/test/filter.js
sprockets-browserify-0.3.0 node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/test/filter_sync.js
sprockets-browserify-0.3.0 node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/filter_sync.js
sprockets-browserify-0.3.0 node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/filter_sync.js
cssesc-source-0.1.0 vendor/node_modules/istanbul/node_modules/resolve/test/filter_sync.js
sprockets-browserify-0.2.0 node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/filter_sync.js
sprockets-browserify-0.2.0 node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/filter_sync.js
sprockets-browserify-0.2.0 node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/test/filter_sync.js
ruby-wisp-source-0.8.0 vendor/node_modules/browserify/node_modules/umd/node_modules/rfile/node_modules/resolve/test/filter_sync.js
ruby-wisp-source-0.8.0 vendor/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/test/filter_sync.js
ruby-wisp-source-0.8.0 vendor/node_modules/browserify/node_modules/module-deps/node_modules/resolve/test/filter_sync.js