add test for APNs bundle ID

This commit is contained in:
2025-03-24 10:13:58 -07:00
parent ac65e23984
commit 20282c3cf9

View File

@@ -105,7 +105,18 @@ describe("AppleNotificationSender", () => {
}); });
it('throws an error if the bundle ID is not set correctly', async () => { 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 () => { it('returns false if there is an error sending the notification', async () => {