test(worker): assert indexDoc in sync-routes approval test

This commit is contained in:
2026-05-27 23:58:44 +05:30
parent 6f71e5aee9
commit 7d905b166e
+8
View File
@@ -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',
});
});
});