test: clarified assert message for test-require-json.js
PR-URL: https://github.com/nodejs/node/pull/16807 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
parent
cab34ba75e
commit
820bb0084b
@ -29,5 +29,6 @@ try {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
assert.ok(
|
assert.ok(
|
||||||
/test[/\\]fixtures[/\\]invalid\.json: Unexpected string/.test(err.message),
|
/test[/\\]fixtures[/\\]invalid\.json: Unexpected string/.test(err.message),
|
||||||
'require() json error should include path');
|
`require() json error should include path - currently: ${err.message}`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user