test: survey slack message schema props · openclaw/openclaw@fd8ba6a
shakkernerd
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -260,8 +260,9 @@ describe("Slack message tools", () => {
|
260 | 260 | : discovery.schema |
261 | 261 | ? [discovery.schema] |
262 | 262 | : []; |
263 | | -expect(schemas.some((entry) => "fileId" in entry.properties)).toBe(false); |
264 | | -expect(schemas.some((entry) => "messageId" in entry.properties)).toBe(false); |
265 | | -expect(schemas.some((entry) => "replyBroadcast" in entry.properties)).toBe(true); |
| 263 | +const propertyNames = schemas.flatMap((entry) => Object.keys(entry.properties)); |
| 264 | +expect(propertyNames).not.toContain("fileId"); |
| 265 | +expect(propertyNames).not.toContain("messageId"); |
| 266 | +expect(propertyNames).toContain("replyBroadcast"); |
266 | 267 | }); |
267 | 268 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。