test: give the pairing hand-off tests the redirect-safe fetch the sign-in code now goes through

This commit is contained in:
Linus Rath
2026-10-29 04:22:20 +01:00
parent 79ee9c34ca
commit e7e40c309e
+1 -1
View File
@@ -2,7 +2,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import * as WebBrowser from 'expo-web-browser';
const { mockSecureFetch } = vi.hoisted(() => ({ mockSecureFetch: vi.fn() }));
vi.mock('../client-cert', () => ({ secureFetch: mockSecureFetch }));
vi.mock('../client-cert', () => ({ secureFetch: mockSecureFetch, fetchWithoutForeignRedirect: mockSecureFetch }));
import { redeemPairingCode, runWebmailHandoff } from '../oauth';