Правки различные
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user