Sha256: bd00bb2fcc7f3ec101beab0f1201f2bd80019042c1415a622a0b1ff10bbbaa2d

Contents?: true

Size: 458 Bytes

Versions: 6

Compression:

Stored size: 458 Bytes

Contents

var assert = require('assert');
var resolve = require('../');

var fixtures_dir = __dirname + '/fixtures';

test('local', function(done) {
    // resolve needs a parent filename or paths to be able to lookup files
    // we provide a phony parent file
    resolve('./foo', { filename: fixtures_dir + '/phony.js' }, function(err, path) {
        assert.ifError(err);
        assert.equal(path, require.resolve('./fixtures/foo'));
        done();
    });
});

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
sprockets-browserify-0.3.0 node_modules/browserify/node_modules/browser-resolve/test/local.js
sprockets-browserify-0.2.0 node_modules/browserify/node_modules/browser-resolve/test/local.js
ruby-wisp-source-0.8.0 vendor/node_modules/browserify/node_modules/browser-resolve/test/local.js
ruby-wisp-source-0.7.0 vendor/node_modules/browserify/node_modules/browser-resolve/test/local.js
sprockets-browserify-0.1.2 node_modules/module-deps/node_modules/browser-resolve/test/local.js
sprockets-browserify-0.1.0 node_modules/module-deps/node_modules/browser-resolve/test/local.js