mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 13:26:04 -06:00
test: tighten discord message read assertion
This commit is contained in:
@@ -40,7 +40,7 @@ describe("readMessagesDiscord", () => {
|
||||
const result = await readMessagesDiscord("C1", { limit: 5 }, { cfg: {} as never });
|
||||
|
||||
expect(result).toEqual(messages);
|
||||
expect(restMock.get).toHaveBeenCalledWith(expect.stringContaining("C1"), { limit: 5 });
|
||||
expect(restMock.get).toHaveBeenCalledWith("/channels/C1/messages", { limit: 5 });
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user