Skip to content

Commit 3202d81

Browse files
Remove unnecesary test
1 parent d0b2ed6 commit 3202d81

1 file changed

Lines changed: 0 additions & 33 deletions

File tree

app/web/components/Navigation/Navigation.test.tsx

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -117,36 +117,3 @@ it("renders the language picker on mobile when the user is logged out", () => {
117117
window.matchMedia = originalMatchMedia;
118118
}
119119
});
120-
121-
it("does not render the language picker on mobile when the user is authenticated", () => {
122-
const originalMatchMedia = window.matchMedia;
123-
window.matchMedia = createMatchMedia(800);
124-
125-
try {
126-
mockUseAuthStore.mockReturnValue({
127-
authState: {
128-
authenticated: true,
129-
error: null,
130-
jailed: false,
131-
loading: false,
132-
userId: 1,
133-
flowState: null,
134-
},
135-
authActions: {
136-
authError: jest.fn(),
137-
clearError: jest.fn(),
138-
firstLogin: jest.fn(),
139-
logout: jest.fn(),
140-
passwordLogin: jest.fn(),
141-
updateJailStatus: jest.fn(),
142-
updateSignupState: jest.fn(),
143-
},
144-
});
145-
146-
render(<Navigation />, { wrapper });
147-
148-
expect(screen.queryByTestId("language-picker")).not.toBeInTheDocument();
149-
} finally {
150-
window.matchMedia = originalMatchMedia;
151-
}
152-
});

0 commit comments

Comments
 (0)