test: offer slack monitor text · openclaw/openclaw@559a744
shakkernerd
·
2026-05-13
·
via Recent Commits to openclaw:main
File tree
extensions/slack/src/monitor
| Original file line number | Diff line number | Diff line change |
|---|
@@ -144,7 +144,7 @@ function expectVerboseLogContains(expected: string): void {
|
144 | 144 | const messages = vi |
145 | 145 | .mocked(logVerbose) |
146 | 146 | .mock.calls.map((call) => (typeof call[0] === "string" ? call[0] : "")); |
147 | | -expect(messages.some((message) => message.includes(expected))).toBe(true); |
| 147 | +expect(messages.join("\n")).toContain(expected); |
148 | 148 | } |
149 | 149 | |
150 | 150 | function getRequestHeader(callIndex: number, headerName: string): string | null { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -851,7 +851,7 @@ describe("Slack native command argument menus", () => {
|
851 | 851 | options?: Array<{ text?: { text?: string }; value?: string }>; |
852 | 852 | }; |
853 | 853 | const optionTexts = (optionsPayload.options ?? []).map((option) => option.text?.text ?? ""); |
854 | | -expect(optionTexts.some((text) => text.includes("Period 12"))).toBe(true); |
| 854 | +expect(optionTexts.join("\n")).toContain("Period 12"); |
855 | 855 | }); |
856 | 856 | |
857 | 857 | it("tracks accepted external_select option requests", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。