test: Add TypeScript ignore comments for private property access in spotifyPollingService tests

This commit is contained in:
2025-09-30 05:21:12 +02:00
parent 68a7f6b9cc
commit e1a5e040a1
@@ -98,6 +98,7 @@ describe("SpotifyPollingService", () => {
expect(vi.getTimerCount()).toBe(1);
pollingService.stopPollingForUser(mockUser.uuid);
// @ts-ignore - access to private property for test
expect(pollingService.activePolls.size).toBe(0);
});
});
@@ -191,6 +192,8 @@ describe("SpotifyPollingService", () => {
await vi.advanceTimersByTimeAsync(5000);
expect(mockedApiService.getCurrentlyPlaying).toHaveBeenCalledTimes(2);
// @ts-ignore - access to private property for test
expect(pollingService.activePolls.size).toBe(1);
});
});