2011-02-10 05:28:30 +08:00
|
|
|
console.error(__filename);
|
2011-10-05 06:08:18 +08:00
|
|
|
console.error(module.paths.join('\n') + '\n');
|
2011-02-10 05:28:30 +08:00
|
|
|
// this should work, and get the one that doesn't throw
|
2011-02-10 05:52:29 +08:00
|
|
|
var assert = require('assert');
|
|
|
|
assert.equal(require('bar'), require('../bar.js'));
|
2011-02-10 05:28:30 +08:00
|
|
|
|
|
|
|
// this should work, and get the one in ./node_modules/asdf.js
|
2011-02-10 05:52:29 +08:00
|
|
|
assert.equal(require('asdf'), require('./node_modules/asdf.js'));
|