Skip to content

Commit

Permalink
fix upstream tests
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed Dec 4, 2023
1 parent 15cc23c commit 479fb8f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/__tests__/json-validation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <code>object</code> but received <code>null</code>",
],
]);
});
it("should provide range for invalid multiline json", () => {
Expand All @@ -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 <code>foo</code> is missing at <code>object</code>",
],
],
testSchema2
);
});
Expand Down

0 comments on commit 479fb8f

Please sign in to comment.