Skip to content

Commit 5872f56

Browse files
Fixed tests that were failing on Safari
1 parent a00a236 commit 5872f56

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/specs/invalid/invalid.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ describe("Invalid syntax", () => {
162162
message: message => (
163163
message.includes("invalid.json: Unexpected end of JSON input") ||
164164
message.includes("invalid.json: JSON.parse: end of data while reading object contents") || // Firefox
165+
message.includes("invalid.json: JSON Parse error: Expected '}'") || // Safari
165166
message.includes("invalid.json: JSON.parse Error: Invalid character") || // Edge
166167
message.includes("invalid.json: Syntax error") // IE
167168
),
@@ -315,6 +316,7 @@ describe("Invalid syntax", () => {
315316
message: message => (
316317
message.includes("invalid.json: Unexpected end of JSON input") ||
317318
message.includes("invalid.json: JSON.parse: end of data while reading object contents") || // Firefox
319+
message.includes("invalid.json: JSON Parse error: Expected '}'") || // Safari
318320
message.includes("invalid.json: JSON.parse Error: Invalid character") || // Edge
319321
message.includes("invalid.json: Syntax error") // IE
320322
),

0 commit comments

Comments
 (0)