Skip to content

Commit e6c0bbe

Browse files
RakshithNMaddaleax
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 <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
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

Lines changed: 4 additions & 4 deletions
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)