Skip to content

Commit

Permalink
change test for failed registration to check for general error
Browse files Browse the repository at this point in the history
  • Loading branch information
kepsteen committed Nov 19, 2024
1 parent 179c4a9 commit 809bfbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/apiFunctions.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ describe('apiFunctions', () => {

await expect(
registerAccount({ email: mockEmail, password: mockPassword }),
).rejects.toThrow('Error registering user');
).rejects.toThrow();

expect(ID.unique).toHaveBeenCalledTimes(1);
expect(account.create).toHaveBeenCalledWith(
Expand Down

0 comments on commit 809bfbe

Please sign in to comment.