From 3112fd6b0de2f0b6ac495a7b2fd001fe3f520460 Mon Sep 17 00:00:00 2001 From: whekin Date: Tue, 24 Mar 2026 02:41:47 +0400 Subject: [PATCH] test(bot): clean up notification delivery fixtures --- apps/bot/src/ad-hoc-notification-jobs.test.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/bot/src/ad-hoc-notification-jobs.test.ts b/apps/bot/src/ad-hoc-notification-jobs.test.ts index 93025ee..f4001bd 100644 --- a/apps/bot/src/ad-hoc-notification-jobs.test.ts +++ b/apps/bot/src/ad-hoc-notification-jobs.test.ts @@ -15,7 +15,8 @@ function dueNotification( creatorMemberId: input.creatorMemberId ?? 'creator', assigneeMemberId: input.assigneeMemberId ?? 'assignee', originalRequestText: 'raw', - notificationText: input.notificationText ?? 'Georgiy, time to call already.', + notificationText: + input.notificationText ?? 'Dima, time to check whether Georgiy has called already.', timezone: input.timezone ?? 'Asia/Tbilisi', scheduledFor: input.scheduledFor ?? Temporal.Instant.from('2026-03-23T09:00:00Z'), timePrecision: input.timePrecision ?? 'exact', @@ -108,7 +109,9 @@ describe('createAdHocNotificationJobsHandler', () => { expect(payload.ok).toBe(true) expect(payload.notifications[0]?.outcome).toBe('sent') - expect(sentTopicMessages[0]).toContain('Georgiy, time to call already.') + expect(sentTopicMessages[0]).toContain( + 'Dima, time to check whether Georgiy has called already.' + ) expect(sentNotifications).toEqual(['notif-1']) }) })