test(worker): assert indexDoc in sync-routes approval test
This commit is contained in:
@@ -130,5 +130,13 @@ describe('handleStarReaction', () => {
|
|||||||
toGroupJid: '888@g.us',
|
toGroupJid: '888@g.us',
|
||||||
fromAccountId: 'acc_1',
|
fromAccountId: 'acc_1',
|
||||||
});
|
});
|
||||||
|
expect(result!.indexDoc).toMatchObject({
|
||||||
|
messageId: 'msg_1',
|
||||||
|
content: 'important announcement',
|
||||||
|
senderName: 'Bob',
|
||||||
|
sourceGroupId: 'grp_1',
|
||||||
|
tags: ['#important'],
|
||||||
|
platform: 'whatsapp',
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user