Fix user notif test

This commit is contained in:
MartinBraquet
2026-02-19 12:23:15 +01:00
parent 4b894363af
commit 6be69b74e8

View File

@@ -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)
);