diff --git a/test/notifications/senders/AppleNotificationSenderTests.test.ts b/test/notifications/senders/AppleNotificationSenderTests.test.ts index 2fd2805..aed404d 100644 --- a/test/notifications/senders/AppleNotificationSenderTests.test.ts +++ b/test/notifications/senders/AppleNotificationSenderTests.test.ts @@ -105,7 +105,18 @@ describe("AppleNotificationSender", () => { }); it('throws an error if the bundle ID is not set correctly', async () => { + process.env = { + ...process.env, + APNS_BUNDLE_ID: undefined, + } + const notificationArguments: NotificationAlertArguments = { + title: 'Test notification', + body: 'This notification will not send', + } + await expect(async () => { + await notificationSender.sendNotificationImmediately('1', notificationArguments); + }).rejects.toThrow(); }); it('returns false if there is an error sending the notification', async () => {