Sha256: 71fd137998e3e8c0fca54d9cfea1e2bb646aaef13c66e92a84fec73c9f2b90e2

Contents?: true

Size: 744 Bytes

Versions: 4

Compression:

Stored size: 744 Bytes

Contents

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

var fixtures_dir = __dirname + '/fixtures';

test('false file', function(done) {
    var parent_file = fixtures_dir + '/node_modules/false/index.js';
    resolve('./fake.js', { filename: parent_file }, function(err, p) {
        assert.ifError(err);
        assert.equal(p, path.normalize(__dirname + '/../empty.js'));
        done();
    });
});

test('false module', function(done) {
    var parent_file = fixtures_dir + '/node_modules/false/index.js';
    resolve('ignore-me', { filename: parent_file }, function(err, p) {
        assert.ifError(err);
        assert.equal(p, path.normalize(__dirname + '/../empty.js'));
        done();
    });
});

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
sprockets-browserify-0.3.0 node_modules/browserify/node_modules/browser-resolve/test/false.js
sprockets-browserify-0.2.0 node_modules/browserify/node_modules/browser-resolve/test/false.js
ruby-wisp-source-0.8.0 vendor/node_modules/browserify/node_modules/browser-resolve/test/false.js
ruby-wisp-source-0.7.0 vendor/node_modules/browserify/node_modules/browser-resolve/test/false.js