mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 01:31:08 +00:00
test(matrix): assert stale draft redaction on overflow
This commit is contained in:
@@ -2714,6 +2714,7 @@ describe("matrix monitor handler draft streaming", () => {
|
||||
await deliver({ text: "123456" }, { kind: "final" });
|
||||
|
||||
expect(editMessageMatrixMock).not.toHaveBeenCalled();
|
||||
expect(redactEventMock).toHaveBeenCalledWith("!room:example.org", "$draft1");
|
||||
expect(deliverMatrixRepliesMock).toHaveBeenCalledTimes(1);
|
||||
expect(sendSingleTextMessageMatrixMock).toHaveBeenCalledTimes(1);
|
||||
await finish();
|
||||
|
||||
Reference in New Issue
Block a user