From 7d905b166e684484df778998bbb0010d867cd267 Mon Sep 17 00:00:00 2001 From: maaz519 Date: Wed, 27 May 2026 23:58:44 +0530 Subject: [PATCH] test(worker): assert indexDoc in sync-routes approval test --- apps/worker/src/core/approval.test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/worker/src/core/approval.test.ts b/apps/worker/src/core/approval.test.ts index 3a05883..7c18ddd 100644 --- a/apps/worker/src/core/approval.test.ts +++ b/apps/worker/src/core/approval.test.ts @@ -130,5 +130,13 @@ describe('handleStarReaction', () => { toGroupJid: '888@g.us', fromAccountId: 'acc_1', }); + expect(result!.indexDoc).toMatchObject({ + messageId: 'msg_1', + content: 'important announcement', + senderName: 'Bob', + sourceGroupId: 'grp_1', + tags: ['#important'], + platform: 'whatsapp', + }); }); });