From 87511398fb6bbea96da7be4760b6e9ee7cf62441 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Wed, 25 Mar 2026 10:43:47 +0300 Subject: [PATCH] test: change mocks to comply with the new validation --- src/features/auth/api/calls/mocks.ts | 2 +- src/features/auth/model/stores/authStore/authStore.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/auth/api/calls/mocks.ts b/src/features/auth/api/calls/mocks.ts index 9fda5a9..6bc88a5 100644 --- a/src/features/auth/api/calls/mocks.ts +++ b/src/features/auth/api/calls/mocks.ts @@ -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", diff --git a/src/features/auth/model/stores/authStore/authStore.spec.ts b/src/features/auth/model/stores/authStore/authStore.spec.ts index 6da7981..d25d6bb 100644 --- a/src/features/auth/model/stores/authStore/authStore.spec.ts +++ b/src/features/auth/model/stores/authStore/authStore.spec.ts @@ -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();