diff --git a/fluxer_api/src/api/push/ApnsPushService.ts b/fluxer_api/src/api/push/ApnsPushService.ts index 11d10f464..e8f5eb86e 100644 --- a/fluxer_api/src/api/push/ApnsPushService.ts +++ b/fluxer_api/src/api/push/ApnsPushService.ts @@ -204,9 +204,7 @@ function buildApnsPayload(payload: Record): Record { notification: {title: 'Alice', body: 'Hello', icon: 'https://cdn.example/avatar.png'}, }); expect(payload.image_url).toBeUndefined(); - expect(payload.aps).not.toHaveProperty('mutable-content'); + expect(payload.aps).toHaveProperty('mutable-content', 1); expect(payload.author_avatar_url).toBe('https://cdn.example/avatar.png'); }); it('imports the APNs signing key once per PEM and rejects a truncated one every time', async () => {