Skip to content

Commit

Permalink
Update tinify-client-test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ddmicu authored Jul 16, 2024
1 parent 02029ba commit b63a106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/tinify-client-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ describe("Client", function() {

it("should pass error with message", function() {
if (semver.gte(process.versions.node, "6.0.0")) {
assert.equal(error.message, "Error while parsing response: Unexpected token < in JSON at position 0 (HTTP 543/ParseError)")
assert.include(error.message, "(HTTP 543/ParseError)")
} else {
assert.equal(error.message, "Error while parsing response: Unexpected token < (HTTP 543/ParseError)")
}
Expand Down

0 comments on commit b63a106

Please sign in to comment.