Skip to content

Commit 714eb0b

Browse files
awegrzynMylesBorins
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 <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 8e5b4f5 commit 714eb0b

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)