test(discord): name fast-path mock arguments

This commit is contained in:
Rai Butera 2026-03-09 20:51:11 +00:00 committed by Altay
parent 107935dc51
commit c2af3c6047
No known key found for this signature in database
1 changed files with 5 additions and 2 deletions

View File

@ -272,8 +272,11 @@ describe("deliverDiscordReply", () => {
expect(sendMessageDiscordMock).not.toHaveBeenCalled();
expect(sendDiscordTextMock).toHaveBeenCalledTimes(1);
expect(sendDiscordTextMock.mock.calls[0]?.[5]).toBe(120);
expect(sendDiscordTextMock.mock.calls[0]?.[8]).toBe("newline");
const firstSendDiscordTextCall = sendDiscordTextMock.mock.calls[0];
const [, , , , , maxLinesPerMessageArg, , , chunkModeArg] = firstSendDiscordTextCall ?? [];
expect(maxLinesPerMessageArg).toBe(120);
expect(chunkModeArg).toBe("newline");
});
it("falls back to sendMessageDiscord when rest is not provided", async () => {