Skip to content

Commit 8723545

Browse files
hiroppyMylesBorins
authored andcommitted
test: refactor cluster-preload.js
PR-URL: #10701 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Italo A. Casas <[email protected]>
1 parent 04dc1cd commit 8723545

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/fixtures/cluster-preload.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ var assert = require('assert');
44
// this module is used as a preload module. It should have a parent with the
55
// module search paths initialized from the current working directory
66
assert.ok(module.parent);
7-
var expectedPaths = require('module')._nodeModulePaths(process.cwd());
8-
assert.deepEqual(module.parent.paths, expectedPaths);
7+
const expectedPaths = require('module')._nodeModulePaths(process.cwd());
8+
assert.deepStrictEqual(module.parent.paths, expectedPaths);
99

1010
var cluster = require('cluster');
1111
cluster.isMaster || process.exit(42 + cluster.worker.id); // +42 to distinguish

0 commit comments

Comments
 (0)