Fix missing cancelTask in mock SchedulerService implementations

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Fredrik Adelöw <freben@spotify.com>
This commit is contained in:
Fredrik Adelöw
2026-03-09 22:16:33 +01:00
parent 015668c5d2
commit 60eec59601
5 changed files with 8 additions and 3 deletions
@@ -95,6 +95,10 @@ export class MockSchedulerService implements SchedulerService {
});
}
async cancelTask(_id: string): Promise<void> {
// No-op in mock
}
async triggerTask(id: string): Promise<void> {
const task = this.#tasks.get(id);
if (!task) {
@@ -526,6 +526,7 @@ export namespace mockServices {
getScheduledTasks: jest.fn(),
scheduleTask: jest.fn(),
triggerTask: jest.fn(),
cancelTask: jest.fn(),
}));
}