2010-12-04 23:45:52 +01:00
|
|
|
var common = require('../common');
|
2010-10-19 03:17:33 +02:00
|
|
|
var fixturesDir = common.fixturesDir;
|
2010-12-05 20:15:30 +01:00
|
|
|
var assert = require('assert');
|
2010-12-04 23:45:52 +01:00
|
|
|
var path = require('path');
|
2010-10-19 03:17:33 +02:00
|
|
|
|
2014-12-08 17:49:24 +01:00
|
|
|
assert.equal(
|
|
|
|
path.join(__dirname, '../fixtures/a.js').toLowerCase(),
|
|
|
|
require.resolve('../fixtures/a').toLowerCase());
|
|
|
|
assert.equal(
|
|
|
|
path.join(fixturesDir, 'a.js').toLowerCase(),
|
|
|
|
require.resolve(path.join(fixturesDir, 'a')).toLowerCase());
|
|
|
|
assert.equal(
|
|
|
|
path.join(fixturesDir, 'nested-index', 'one', 'index.js').toLowerCase(),
|
|
|
|
require.resolve('../fixtures/nested-index/one').toLowerCase());
|
2010-12-04 23:45:52 +01:00
|
|
|
assert.equal('path', require.resolve('path'));
|
2010-10-19 03:17:33 +02:00
|
|
|
|
2010-12-04 23:45:52 +01:00
|
|
|
console.log('ok');
|