Skip to content

Commit 42b970c

Browse files
Fix bad test
1 parent 90e35d5 commit 42b970c

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/services/notifications.test.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,8 @@ describe('Notification service', () => {
205205
expect(found).toBeNull();
206206
});
207207

208-
it('returns 0 when no notification matches the given ID', async () => {
209-
const deletedCount = await deleteNotification(0);
210-
211-
expect(deletedCount).toBe(0);
212-
});
213-
214208
it('throws when notificationId is falsy', async () => {
209+
await expect(deleteNotification(0)).rejects.toThrow('notificationId is required');
215210
await expect(deleteNotification(null)).rejects.toThrow('notificationId is required');
216211
await expect(deleteNotification(undefined)).rejects.toThrow('notificationId is required');
217212
});

0 commit comments

Comments
 (0)