You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
540 B

14 years ago
var common = require('../common');
var fixturesDir = common.fixturesDir;
var assert = common.assert;
14 years ago
var path = require('path');
14 years ago
assert.equal(path.join(__dirname, '../fixtures/a.js'),
require.resolve('../fixtures/a'));
assert.equal(path.join(fixturesDir, 'a.js'),
require.resolve(path.join(fixturesDir, 'a')));
assert.equal(path.join(fixturesDir, 'nested-index', 'one', 'index.js'),
require.resolve('../fixtures/nested-index/one'));
assert.equal('path', require.resolve('path'));
14 years ago
console.log('ok');