Skip to content

Commit 2156828

Browse files
matthias-reiscjihrig
authored andcommitted
test: clarified assert message for test-require-json.js
PR-URL: #16807 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent e781d93 commit 2156828

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-require-json.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ try {
2929
} catch (err) {
3030
assert.ok(
3131
/test[/\\]fixtures[/\\]invalid\.json: Unexpected string/.test(err.message),
32-
'require() json error should include path');
32+
`require() json error should include path - currently: ${err.message}`
33+
);
3334
}

0 commit comments

Comments
 (0)