mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 23:56:07 +00:00
test: dedupe signal reply mock reads
This commit is contained in:
@@ -140,7 +140,7 @@ describe("monitorSignalProvider tool results", () => {
|
||||
await vi.waitFor(() => {
|
||||
expect(sendMock).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
expect(sendMock.mock.calls.at(0)?.[1]).toBe("PFX final reply");
|
||||
expect(sendMock.mock.calls[0]?.[1]).toBe("PFX final reply");
|
||||
});
|
||||
|
||||
it("replies with pairing code when dmPolicy is pairing and no allowFrom is set", async () => {
|
||||
@@ -165,7 +165,7 @@ describe("monitorSignalProvider tool results", () => {
|
||||
expect(replyMock).not.toHaveBeenCalled();
|
||||
expect(upsertPairingRequestMock).toHaveBeenCalled();
|
||||
expect(sendMock).toHaveBeenCalledTimes(1);
|
||||
expectPairingReplyText(String(sendMock.mock.calls.at(0)?.[1] ?? ""), {
|
||||
expectPairingReplyText(String(sendMock.mock.calls[0]?.[1] ?? ""), {
|
||||
channel: "signal",
|
||||
idLine: "Your Signal number: +15550001111",
|
||||
code: "PAIRCODE",
|
||||
|
||||
Reference in New Issue
Block a user