Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrkulpinski committed Feb 19, 2024
1 parent 4cec297 commit 6bc0da7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parsers/parsers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe("maybeParseJson", () => {
const jsonString = '{"name": "John", "age": 30}'
const expected = { name: "John", age: 30 }

expect(maybeParseJson(jsonString)).toEqual(expected)
expect(maybeParseJson(jsonString)).toMatchObject(expected)
})

it("returns the input value if it is not a valid JSON string", () => {
Expand Down

0 comments on commit 6bc0da7

Please sign in to comment.