We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf8fae5 commit b99ba2cCopy full SHA for b99ba2c
tests/unit/apiClient.test.ts
@@ -140,7 +140,7 @@ describe("ApiClient", () => {
140
mockFetch.mockResolvedValueOnce(new Response(null, { status: 200 }));
141
142
// @ts-expect-error accessing private property for testing
143
- apiClient.getAccessToken = jest.fn().mockRejectedValue(undefined);
+ apiClient.getAccessToken = jest.fn().mockReturnValueOnce(undefined);
144
145
await apiClient.sendEvents(mockEvents);
146
0 commit comments