test: tighten slack malformed interaction log assertion · openclaw/openclaw@5cbcf7a
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
File tree
extensions/slack/src/monitor/events
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1451,7 +1451,9 @@ describe("registerSlackInteractionEvents", () => {
|
1451 | 1451 | expect(ack).toHaveBeenCalled(); |
1452 | 1452 | expect(app.client.chat.update).not.toHaveBeenCalled(); |
1453 | 1453 | expect(enqueueSystemEventMock).not.toHaveBeenCalled(); |
1454 | | -expect(runtimeLog).toHaveBeenCalledWith(expect.stringContaining("slack:interaction malformed")); |
| 1454 | +expect(runtimeLog).toHaveBeenCalledWith( |
| 1455 | +"slack:interaction malformed action payload channel=C1 user=U666", |
| 1456 | +); |
1455 | 1457 | }); |
1456 | 1458 | |
1457 | 1459 | it("escapes mrkdwn characters in confirmation labels", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。