Skip to content

Commit

Permalink
Update jest and fix test.
Browse files Browse the repository at this point in the history
`expect.objectContaining` no longer plays nice with `null`.
  • Loading branch information
wjhsf committed Nov 3, 2023
1 parent 6fd333e commit 0daa020
Show file tree
Hide file tree
Showing 3 changed files with 1,071 additions and 915 deletions.
2 changes: 1 addition & 1 deletion lib/__tests__/parse.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ describe('Cookie.parse', () => {
const value = input === undefined ? undefined : input.valueOf()
const cookie = Cookie.parse(value as string, parseOptions)
if (output !== undefined) {
expect(cookie).toEqual(expect.objectContaining(output))
expect(cookie).toEqual(output && expect.objectContaining(output))
} else {
expect(cookie).toBe(output)
}
Expand Down
Loading

0 comments on commit 0daa020

Please sign in to comment.