fix: update auth-simple test to mock headers function

This commit is contained in:
2026-03-31 09:18:14 -07:00
parent 103c62497c
commit 1b5776951c
+3
View File
@@ -6,6 +6,9 @@ vi.mock('next/headers', () => ({
cookies: vi.fn().mockResolvedValue({
get: vi.fn().mockReturnValue({ name: 'better-auth.session_token', value: 'test-token' }),
}),
headers: vi.fn().mockResolvedValue({
get: vi.fn().mockReturnValue(null),
}),
}))
// Mock fetch