mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-26 16:06:16 +00:00
test(telegram): avoid heavy pairing-store mock reset in dm flow loop
This commit is contained in:
@@ -285,7 +285,8 @@ describe("createTelegramBot", () => {
|
||||
channels: { telegram: { dmPolicy: "pairing" } },
|
||||
});
|
||||
readChannelAllowFromStore.mockResolvedValue([]);
|
||||
upsertChannelPairingRequest.mockReset();
|
||||
upsertChannelPairingRequest.mockClear();
|
||||
upsertChannelPairingRequest.mockResolvedValue({ code: "PAIRCODE", created: true });
|
||||
for (const result of testCase.upsertResults) {
|
||||
upsertChannelPairingRequest.mockResolvedValueOnce(result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user