Skip to content

Commit 33f1bf3

Browse files
committed
test: add test coverage to Iterable.tsx
1 parent 6f75a38 commit 33f1bf3

File tree

2 files changed

+401
-7
lines changed

2 files changed

+401
-7
lines changed

src/__mocks__/MockRNIterableAPI.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,16 @@ export class MockRNIterableAPI {
6666
MockRNIterableAPI.attributionInfo = attributionInfo;
6767
}
6868

69-
static initializeWithApiKey = jest.fn();
69+
static initializeWithApiKey = jest.fn().mockResolvedValue(true);
70+
71+
static initialize2WithApiKey = jest.fn().mockResolvedValue(true);
72+
73+
static wakeApp = jest.fn()
7074

7175
static setInAppShowResponse = jest.fn();
7276

77+
static passAlongAuthToken = jest.fn();
78+
7379
static async getInAppMessages(): Promise<IterableInAppMessage[] | undefined> {
7480
return await new Promise((resolve) => {
7581
resolve(MockRNIterableAPI.messages);

0 commit comments

Comments
 (0)