mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
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:
@@ -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,
|
||||
}),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user