Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

test(engine): drop two type assertions the compiler does not need

Yudhi Armyndharisb50ea6efacf0
diff --git a/src/engine/adapters/inbound-hold.spec.ts b/src/engine/adapters/inbound-hold.spec.ts
index 902545167..9e1187a84 100644
--- a/src/engine/adapters/inbound-hold.spec.ts
+++ b/src/engine/adapters/inbound-hold.spec.ts
@@ -522,7 +522,7 @@ describe('Baileys inbound messages held for storage', () => {
...text('C', '[email protected]'),
key: { id: 'C', remoteJid: '[email protected]', fromMe: false, participant: '[email protected]' },
};
- upsert(events, text('A', '[email protected]'), own as WAMessage, member as WAMessage);
+ upsert(events, text('A', '[email protected]'), own, member);
await flush();
expect(admitInbound.mock.calls.map(([a]) => [a.id, a.fromMe, a.author])).toEqual([