mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 21:18:28 +00:00
chore: Fix types in tests 34/N.
This commit is contained in:
@@ -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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user