Skip to content

Commit

Permalink
fix error msg check
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Dec 4, 2024
1 parent 16e61ec commit 7328ad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1912,7 +1912,7 @@ describe("Test body-parsers", () => {
expect(res.body).toEqual({
"code": 400,
"type": "entity.parse.failed",
"message": process.version.startsWith("v20")? "Unexpected token 'i', \"#\" is not valid JSON": "Unexpected token i in JSON at position 0",
"message": process.version.startsWith("v2")? "Unexpected token 'i', \"#\" is not valid JSON": "Unexpected token i in JSON at position 0",
"name": "MoleculerError"
});
}).then(() => broker.stop()).catch(err => broker.stop().then(() => { throw err; }));
Expand Down

0 comments on commit 7328ad7

Please sign in to comment.