test: clarify slack external menu assertion · openclaw/openclaw@281318e
shakkernerd
·
2026-05-08
·
via Recent Commits to openclaw:main
File tree
extensions/slack/src/monitor
| Original file line number | Diff line number | Diff line change |
|---|
@@ -810,7 +810,7 @@ describe("Slack native command argument menus", () => {
|
810 | 810 | options?: Array<{ text?: { text?: string }; value?: string }>; |
811 | 811 | }; |
812 | 812 | const optionTexts = (optionsPayload.options ?? []).map((option) => option.text?.text ?? ""); |
813 | | -expect(optionTexts.some((text) => text.includes("Period 12"))).toBe(true); |
| 813 | +expect(optionTexts).toEqual(expect.arrayContaining([expect.stringContaining("Period 12")])); |
814 | 814 | }); |
815 | 815 | |
816 | 816 | it("tracks accepted external_select option requests", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。