test: change mocks to comply with the new validation
This commit is contained in:
@@ -4,7 +4,7 @@ import { MOCK_TOKEN } from "shared/api";
|
||||
|
||||
export const MOCK_EMAIL = "test@test.com";
|
||||
export const MOCK_NEW_EMAIL = "new@test.com";
|
||||
export const MOCK_PASSWORD = "password";
|
||||
export const MOCK_PASSWORD = "100%GoodPassword";
|
||||
|
||||
export const MOCK_EXISTING_USER: User = {
|
||||
id: "1",
|
||||
|
||||
@@ -88,7 +88,7 @@ describe("authStore", () => {
|
||||
|
||||
it("should set error and update status if login fails", async () => {
|
||||
useAuthStore.getState().setEmail("wrong@test.com");
|
||||
useAuthStore.getState().setPassword("wrongPassword");
|
||||
useAuthStore.getState().setPassword("100%WrongPassword");
|
||||
|
||||
await useAuthStore.getState().login();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user