Skip to content

Commit 271c89e

Browse files
awegrzynevanlucas
authored andcommitted
test: improve assertion in test-require-dot
Include the value that differed from the expected value in an assertion message in test-require-dot. PR-URL: #16805 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 25dd8f6 commit 271c89e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/parallel/test-require-dot.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,8 @@ process.env.NODE_PATH = fixtures.path('module-require', 'relative');
1414
m._initPaths();
1515

1616
const c = require('.');
17-
18-
assert.strictEqual(c.value, 42, 'require(".") should honor NODE_PATH');
17+
assert.strictEqual(
18+
c.value,
19+
42,
20+
`require(".") should honor NODE_PATH; expected 42, found ${c.value}`
21+
);

0 commit comments

Comments
 (0)