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