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.
 
 
 
 
 
 

12 lines
395 B

'use strict';
const assert = require('assert');
const path = require('path');
const foo = require('./foo');
const linkScriptEnding = path.join('module-require-symlink', 'symlinked.js');
assert.strictEqual(foo.dep1.bar.version, 'CORRECT_VERSION');
assert.strictEqual(foo.dep2.bar.version, 'CORRECT_VERSION');
assert(__filename.endsWith(linkScriptEnding));
assert(__filename in require.cache);