mirror of
https://github.com/bulwarkmail/native.git
synced 2026-10-31 08:06:36 +00:00
test: give the pairing hand-off tests the redirect-safe fetch the sign-in code now goes through
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user