Skip to content

Commit 7139a2c

Browse files
committed
lint
1 parent ef83569 commit 7139a2c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/unit/apiClient.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe("ApiClient", () => {
3434
},
3535
});
3636

37-
// @ts-ignore - accessing private property for testing
37+
// @ts-expect-error accessing private property for testing
3838
apiClient.getAccessToken = jest.fn().mockResolvedValue("mockToken");
3939
});
4040

@@ -65,7 +65,7 @@ describe("ApiClient", () => {
6565
response: new Response(),
6666
}));
6767

68-
// @ts-ignore - accessing private property for testing
68+
// @ts-expect-error accessing private property for testing
6969
apiClient.client.GET = mockGet;
7070

7171
const result = await apiClient.listProjects();
@@ -86,7 +86,7 @@ describe("ApiClient", () => {
8686
response: new Response(),
8787
}));
8888

89-
// @ts-ignore - accessing private property for testing
89+
// @ts-expect-error accessing private property for testing
9090
apiClient.client.GET = mockGet;
9191

9292
await expect(apiClient.listProjects()).rejects.toThrow();
@@ -117,7 +117,7 @@ describe("ApiClient", () => {
117117
const mockFetch = jest.spyOn(global, "fetch");
118118
mockFetch.mockResolvedValueOnce(new Response(null, { status: 200 }));
119119

120-
// @ts-ignore - accessing private property for testing
120+
// @ts-expect-error accessing private property for testing
121121
apiClient.getAccessToken = jest.fn().mockResolvedValue(undefined);
122122

123123
await apiClient.sendEvents(mockEvents);
@@ -162,7 +162,7 @@ describe("ApiClient", () => {
162162
.mockResolvedValueOnce(new Response(null, { status: 500 }));
163163

164164
const mockToken = "test-token";
165-
// @ts-ignore - accessing private property for testing
165+
// @ts-expect-error accessing private property for testing
166166
apiClient.getAccessToken = jest.fn().mockResolvedValue(mockToken);
167167

168168
await expect(apiClient.sendEvents(mockEvents)).rejects.toThrow();

0 commit comments

Comments
 (0)