mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
39caa6ddaf
commit
e6c0bbe185
1 file changed
+4
-4
@@ -6,10 +6,10 @@ const _module = require('module'); // avoid collision with global.module
|
||||
const lookupResults = _module._resolveLookupPaths('./lodash');
|
||||
let paths = lookupResults[1];
|
||||
|
||||
assert.strictEqual(paths[0], '.',
|
||||
'Current directory gets highest priority for local modules');
|
||||
// Current directory gets highest priority for local modules
|
||||
assert.strictEqual(paths[0], '.');
|
||||
|
||||
paths = _module._resolveLookupPaths('./lodash', null, true);
|
||||
|
||||
assert.strictEqual(paths && paths[0], '.',
|
||||
'Current directory gets highest priority for local modules');
|
||||
// Current directory gets highest priority for local modules
|
||||
assert.strictEqual(paths && paths[0], '.');
|
||||
Reference in new issue
Block a user