Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit af13678

Browse filesBrowse files
matthias-reisMylesBorins
authored andcommitted
test: clarified assert message for test-require-json.js
PR-URL: #16807 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent aaf7e83 commit af13678
Copy full SHA for af13678

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-require-json.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-require-json.js
+2-1Lines changed: 2 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.