chore: Fix types in tests 34/N.

This commit is contained in:
cpojer
2026-02-17 15:45:59 +09:00
parent 49bd9f75f4
commit ed75d30ad3
7 changed files with 14 additions and 10 deletions

View File

@@ -108,7 +108,7 @@ describe("createWebSendApi", () => {
});
it("falls back to unknown messageId if Baileys result does not expose key.id", async () => {
sendMessage.mockResolvedValueOnce({ key: {} });
sendMessage.mockResolvedValueOnce({ key: {} as { id: string } });
const res = await api.sendMessage("+1555", "hello");
expect(res.messageId).toBe("unknown");
});