From 479fb8f0e3b07022f806919c965aa2d1535377de Mon Sep 17 00:00:00 2001 From: Rikki Schulte Date: Mon, 4 Dec 2023 01:23:21 +0100 Subject: [PATCH] fix upstream tests --- src/__tests__/json-validation.spec.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/__tests__/json-validation.spec.ts b/src/__tests__/json-validation.spec.ts index 8dab379..677a696 100644 --- a/src/__tests__/json-validation.spec.ts +++ b/src/__tests__/json-validation.spec.ts @@ -47,7 +47,11 @@ describe("json-validation", () => { }); it("should not handle invalid json", () => { expectErrors('{"foo": "example" "bar": 123}', [ - [undefined, undefined, "Expected `object` but received `null`"], + [ + undefined, + undefined, + "Expected object but received null", + ], ]); }); it("should provide range for invalid multiline json", () => { @@ -65,7 +69,13 @@ describe("json-validation", () => { "foo": "example", "object": {} }`, - [[46, 48, "The required property `foo` is missing at `object`"]], + [ + [ + 46, + 48, + "The required property foo is missing at object", + ], + ], testSchema2 ); });