Skip to content

Commit

Permalink
fix: fixed test case
Browse files Browse the repository at this point in the history
  • Loading branch information
kleydon committed Jun 28, 2023
1 parent 7ef28a8 commit 15e8381
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/lib/prisma-session-store.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,7 @@ describe('PrismaSessionStore', () => {
await store.get('sid-0', callback);

expect(callback).toHaveBeenCalledWith(
new SyntaxError(
`Expected property name or '}' in JSON at position 2`
) ||
new SyntaxError(
`SyntaxError: Unexpected token i in JSON at position 2`
)
expect.objectContaining({ name: 'SyntaxError' })
);
});

Expand Down

0 comments on commit 15e8381

Please sign in to comment.