Skip to content

Commit a4f3080

Browse files
edsadrevanlucas
authored andcommitted
test: improvements in test fixtures symlinked
- using strictEqual instead equal - common dependency should be the first one - using path.join instead relative path PR-URL: #10182 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Italo A. Casas <[email protected]>
1 parent d5e30a6 commit a4f3080

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
'use strict';
2-
const assert = require('assert');
32
const common = require('../../common');
3+
const assert = require('assert');
4+
const foo = require('./foo');
45
const path = require('path');
56

67
const linkScriptTarget = path.join(common.fixturesDir,
7-
'/module-require-symlink/symlinked.js');
8+
'module-require-symlink', 'symlinked.js');
89

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);
1313
assert(__filename in require.cache);

0 commit comments

Comments
 (0)