Skip to content

Commit

Permalink
Fix test around JSON decoding error message
Browse files Browse the repository at this point in the history
Between Node.js v18 and v20, the error message when failing to decode JSON has been changed to be more helpful. This failed the test suite because the error message was still made for v18 environments.

Henceforth tests for this project should be run on v20+ versions of
Node.js.
  • Loading branch information
jfmengels committed Apr 9, 2024
1 parent 5573f0a commit de511c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Review/Test/FailureMessageTest.elm
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,7 @@ Problem with the given value:
"not JSON"
This is not valid JSON! Unexpected token o in JSON at position 1"""
This is not valid JSON! Unexpected token 'o', "not JSON" is not valid JSON"""


extractMismatchTest : Test
Expand Down

0 comments on commit de511c2

Please sign in to comment.