2010-12-05 06:45:52 +08:00
|
|
|
var common = require('../common');
|
2010-10-19 09:17:33 +08:00
|
|
|
var fixturesDir = common.fixturesDir;
|
|
|
|
var assert = common.assert;
|
2010-12-05 06:45:52 +08:00
|
|
|
var path = require('path');
|
2010-10-19 09:17:33 +08:00
|
|
|
|
2010-12-05 06:45:52 +08:00
|
|
|
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'));
|
2010-10-19 09:17:33 +08:00
|
|
|
|
2010-12-05 06:45:52 +08:00
|
|
|
console.log('ok');
|