Skip to content

Commit b99ba2c

Browse files
committed
address comment
1 parent bf8fae5 commit b99ba2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/apiClient.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ describe("ApiClient", () => {
140140
mockFetch.mockResolvedValueOnce(new Response(null, { status: 200 }));
141141

142142
// @ts-expect-error accessing private property for testing
143-
apiClient.getAccessToken = jest.fn().mockRejectedValue(undefined);
143+
apiClient.getAccessToken = jest.fn().mockReturnValueOnce(undefined);
144144

145145
await apiClient.sendEvents(mockEvents);
146146

0 commit comments

Comments
 (0)