mirror of https://github.com/lukechilds/node.git
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.
18 lines
616 B
18 lines
616 B
14 years ago
|
var common = require('../common');
|
||
14 years ago
|
var fixturesDir = common.fixturesDir;
|
||
14 years ago
|
var assert = require('assert');
|
||
14 years ago
|
var path = require('path');
|
||
14 years ago
|
|
||
10 years ago
|
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());
|
||
14 years ago
|
assert.equal('path', require.resolve('path'));
|
||
14 years ago
|
|
||
14 years ago
|
console.log('ok');
|