Skip to content

Commit e6c0bbe

Browse files
RakshithNMaddaleax
RakshithNM
authored andcommitted
test: display values in AssertionErrors
In test-module-relative-lookup, change assert.strictEqual() calls so that values are displayed when an AssertionError occurs. PR-URL: #20545 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 39caa6d commit e6c0bbe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-module-relative-lookup.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ const _module = require('module'); // avoid collision with global.module
66
const lookupResults = _module._resolveLookupPaths('./lodash');
77
let paths = lookupResults[1];
88

9-
assert.strictEqual(paths[0], '.',
10-
'Current directory gets highest priority for local modules');
9+
// Current directory gets highest priority for local modules
10+
assert.strictEqual(paths[0], '.');
1111

1212
paths = _module._resolveLookupPaths('./lodash', null, true);
1313

14-
assert.strictEqual(paths && paths[0], '.',
15-
'Current directory gets highest priority for local modules');
14+
// Current directory gets highest priority for local modules
15+
assert.strictEqual(paths && paths[0], '.');

0 commit comments

Comments
 (0)