Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into release/v5.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
setchy committed Jun 6, 2024
2 parents fde421a + da438f8 commit 3464c9d
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions src/routes/Settings.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -503,19 +503,22 @@ describe('routes/Settings.tsx', () => {
);
});

it('should open account management', () => {
render(
<AppContext.Provider
value={{
auth: mockAuth,
settings: mockSettings,
}}
>
<MemoryRouter>
<SettingsRoute />
</MemoryRouter>
</AppContext.Provider>,
);
it('should open account management', async () => {
await act(async () => {
render(
<AppContext.Provider
value={{
auth: mockAuth,
settings: mockSettings,
}}
>
<MemoryRouter>
<SettingsRoute />
</MemoryRouter>
</AppContext.Provider>,
);
});

fireEvent.click(screen.getByTitle('Accounts'));
expect(mockNavigate).toHaveBeenCalledWith('/accounts');
});
Expand Down

0 comments on commit 3464c9d

Please sign in to comment.