diff --git a/src/services/NotificationService.ts b/src/services/NotificationService.ts index c562986..a1eb118 100644 --- a/src/services/NotificationService.ts +++ b/src/services/NotificationService.ts @@ -250,4 +250,12 @@ export class NotificationService { } return this.deviceIdsToDeliverTo[tuple.toString()].has(deviceId); } + + /** + * Return all scheduled notification for the given device ID. + * @param deviceId + */ + public async getAllScheduledNotificationsForDevice(deviceId: string): Promise { + return []; + } } diff --git a/test/services/NotificationServiceTests.test.ts b/test/services/NotificationServiceTests.test.ts index 7f3cfcf..9d28b22 100644 --- a/test/services/NotificationServiceTests.test.ts +++ b/test/services/NotificationServiceTests.test.ts @@ -230,4 +230,14 @@ describe("NotificationService", () => { expect(http2.connect as jest.Mock).toHaveBeenCalledTimes(0); }); }); + + describe("getAllScheduledNotificationsForDevice", () => { + it("returns scheduled notifications for the device ID", async () => { + + }); + + it("returns an empty array if there are no notifications", async () => { + + }); + }); });