fix: update mock Supabase client to return session data

- Modified the `refreshSession` method in the mock Supabase client to return a session object along with the user, improving the accuracy of the mock implementation for testing purposes.
This commit is contained in:
abhi1992002
2026-01-21 19:23:47 +05:30
parent 25dbab8cf7
commit 1b4ced3a13

View File

@@ -12,7 +12,7 @@ const mockSupabaseClient = {
}),
signOut: vi.fn().mockResolvedValue({ error: null }),
refreshSession: vi.fn().mockResolvedValue({
data: { user: null },
data: { session: null, user: null },
error: null,
}),
},