Fix test around JSON decoding error message

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.
This commit is contained in:
Jeroen Engels 2024-04-09 20:15:24 +02:00
parent 5573f0a666
commit de511c2f6f

View File

@ -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