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.
14 lines
437 B
14 lines
437 B
9 years ago
|
'use strict';
|
||
|
const assert = require('assert');
|
||
|
const common = require('../../common');
|
||
|
const path = require('path');
|
||
|
|
||
|
const linkScriptTarget = path.join(common.fixturesDir,
|
||
|
'/module-require-symlink/symlinked.js');
|
||
|
|
||
|
var foo = require('./foo');
|
||
|
assert.equal(foo.dep1.bar.version, 'CORRECT_VERSION');
|
||
|
assert.equal(foo.dep2.bar.version, 'CORRECT_VERSION');
|
||
|
assert.equal(__filename, linkScriptTarget);
|
||
|
assert(__filename in require.cache);
|