From 6be69b74e8d2f524deacdd5bd40e14299e0fb209 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Thu, 19 Feb 2026 12:23:15 +0100 Subject: [PATCH] Fix user notif test --- backend/api/tests/unit/get-notifications.unit.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/api/tests/unit/get-notifications.unit.test.ts b/backend/api/tests/unit/get-notifications.unit.test.ts index a164fd3e..36bc3a1e 100644 --- a/backend/api/tests/unit/get-notifications.unit.test.ts +++ b/backend/api/tests/unit/get-notifications.unit.test.ts @@ -20,7 +20,7 @@ describe('getNotifications', () => { }); describe('when given valid input', () => { - it('should user notifications', async () => { + it('should send user notifications', async () => { const mockProps = { limit: 10, after: 2 @@ -36,7 +36,7 @@ describe('getNotifications', () => { expect(result).toBe(mockNotifications); expect(mockPg.map).toBeCalledTimes(1); expect(mockPg.map).toBeCalledWith( - sqlMatch('select data from user_notifications'), + sqlMatch('from user_notifications un left join notification_templates nt on un.template_id = nt.id'), [mockAuth.uid, mockProps.limit, mockProps.after], expect.any(Function) );