Правки различные

This commit is contained in:
mi
2026-08-26 11:05:32 +03:00
parent c1e49fb15d
commit 728b9826a3
36 changed files with 722 additions and 1986 deletions
+4 -1
View File
@@ -20,6 +20,8 @@ vi.mock("expo-secure-store", () => ({
}));
vi.mock("expo-web-browser", () => ({
maybeCompleteAuthSession: vi.fn(),
openAuthSessionAsync: vi.fn(),
openBrowserAsync: vi.fn(),
}));
vi.mock("expo-document-picker", () => ({
getDocumentAsync: vi.fn(),
@@ -35,6 +37,7 @@ vi.mock("expo-file-system/legacy", () => ({
}));
vi.mock("expo-linking", () => ({
openURL: vi.fn(),
addEventListener: vi.fn(() => ({ remove: vi.fn() })),
}));
vi.mock("expo-sharing", () => ({
isAvailableAsync: vi.fn(),
@@ -42,7 +45,7 @@ vi.mock("expo-sharing", () => ({
}));
vi.mock("react-native", () => ({
Platform: { OS: "android", Version: "test", constants: {} },
AppState: { currentState: "active" },
AppState: { currentState: "active", addEventListener: vi.fn(() => ({ remove: vi.fn() })) },
}));
import { buildOidcDeviceMetadata } from "../../src/oidc-device";