| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6592a87 commit 570d334
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,13 +1,13 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | - const assert = require('assert'); | ||
| 3 | 2 | const common = require('../../common'); | |
| 3 | + const assert = require('assert'); | ||
| 4 | + const foo = require('./foo'); | ||
| 4 | 5 | const path = require('path'); | |
| 5 | 6 | ||
| 6 | 7 | const linkScriptTarget = path.join(common.fixturesDir, | |
| 7 | - '/module-require-symlink/symlinked.js'); | ||
| 8 | + 'module-require-symlink', 'symlinked.js'); | ||
| 8 | 9 | ||
| 9 | - var foo = require('./foo'); | ||
| 10 | - assert.equal(foo.dep1.bar.version, 'CORRECT_VERSION'); | ||
| 11 | - assert.equal(foo.dep2.bar.version, 'CORRECT_VERSION'); | ||
| 12 | - assert.equal(__filename, linkScriptTarget); | ||
| 10 | + assert.strictEqual(foo.dep1.bar.version, 'CORRECT_VERSION'); | ||
| 11 | + assert.strictEqual(foo.dep2.bar.version, 'CORRECT_VERSION'); | ||
| 12 | + assert.strictEqual(__filename, linkScriptTarget); | ||
| 13 | 13 | assert(__filename in require.cache); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments