From 2913bd78a99cac7760c8a760db7a32600539f01f Mon Sep 17 00:00:00 2001
From: Stephanie Freitag <stephanie.freitag@holi.team>
Date: Wed, 26 Mar 2025 17:41:39 +0100
Subject: [PATCH] HOLI-11059: fix tests using guestModeStorage

---
 core/screens/onboarding/hooks/__tests__/useGuestMode.test.ts    | 2 +-
 core/screens/onboarding/steps/__tests__/CreateAccount.test.tsx  | 2 +-
 .../onboarding/steps/__tests__/EmailVerification.test.tsx       | 2 +-
 .../components/__tests__/AnonymousProfileView.test.tsx          | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/core/screens/onboarding/hooks/__tests__/useGuestMode.test.ts b/core/screens/onboarding/hooks/__tests__/useGuestMode.test.ts
index 5030881b9b..99797e29a8 100644
--- a/core/screens/onboarding/hooks/__tests__/useGuestMode.test.ts
+++ b/core/screens/onboarding/hooks/__tests__/useGuestMode.test.ts
@@ -3,7 +3,7 @@ import { useGuestMode } from '@holi/core/screens/onboarding/hooks/useGuestMode'
 import { act, renderHook } from '@testing-library/react-native'
 
 const mockGetGuestMode = getGuestMode as jest.Mock
-jest.mock('@holi/core/screens/onboarding/helpers/guestModeAsyncStore', () => ({
+jest.mock('@holi/core/screens/onboarding/helpers/guestModeStorage', () => ({
   getGuestMode: jest.fn(),
 }))
 
diff --git a/core/screens/onboarding/steps/__tests__/CreateAccount.test.tsx b/core/screens/onboarding/steps/__tests__/CreateAccount.test.tsx
index 59e5fa9715..b71b6df74b 100644
--- a/core/screens/onboarding/steps/__tests__/CreateAccount.test.tsx
+++ b/core/screens/onboarding/steps/__tests__/CreateAccount.test.tsx
@@ -47,7 +47,7 @@ jest.mock('@holi/core/auth/helpers/sdk', () => ({
 
 const mockClearGuestMode = clearGuestMode as jest.Mock
 const mockStoreGuestMode = storeGuestMode as jest.Mock
-jest.mock('@holi/core/screens/onboarding/helpers/guestModeAsyncStore', () => ({
+jest.mock('@holi/core/screens/onboarding/helpers/guestModeStorage', () => ({
   clearGuestMode: jest.fn(),
   storeGuestMode: jest.fn(),
 }))
diff --git a/core/screens/onboarding/steps/__tests__/EmailVerification.test.tsx b/core/screens/onboarding/steps/__tests__/EmailVerification.test.tsx
index 2c2e58b2a3..c06b70f527 100644
--- a/core/screens/onboarding/steps/__tests__/EmailVerification.test.tsx
+++ b/core/screens/onboarding/steps/__tests__/EmailVerification.test.tsx
@@ -56,7 +56,7 @@ jest.mock('@holi/core/screens/onboarding/hooks/onboardingState', () => ({
 }))
 
 const mockStoreGuestMode = storeGuestMode as jest.Mock
-jest.mock('@holi/core/screens/onboarding/helpers/guestModeAsyncStore', () => ({
+jest.mock('@holi/core/screens/onboarding/helpers/guestModeStorage', () => ({
   storeGuestMode: jest.fn(),
 }))
 
diff --git a/core/screens/userprofile/components/__tests__/AnonymousProfileView.test.tsx b/core/screens/userprofile/components/__tests__/AnonymousProfileView.test.tsx
index f8854b102a..bfafc9171d 100644
--- a/core/screens/userprofile/components/__tests__/AnonymousProfileView.test.tsx
+++ b/core/screens/userprofile/components/__tests__/AnonymousProfileView.test.tsx
@@ -13,7 +13,7 @@ jest.mock('@holi/core/helpers/environment', () => ({
 }))
 
 const mockClearGuestMode = clearGuestMode as jest.Mock
-jest.mock('@holi/core/screens/onboarding/helpers/guestModeAsyncStore', () => ({
+jest.mock('@holi/core/screens/onboarding/helpers/guestModeStorage', () => ({
   clearGuestMode: jest.fn(),
 }))
 
-- 
GitLab