test: tighten slack message tool actions · openclaw/openclaw@b96e7f6
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -35,8 +35,22 @@ describe("Slack message tools", () => {
|
35 | 35 | }, |
36 | 36 | }), |
37 | 37 | ).toMatchObject({ |
38 | | -actions: expect.arrayContaining(["send", "upload-file", "read"]), |
39 | | -capabilities: expect.arrayContaining(["presentation"]), |
| 38 | +actions: [ |
| 39 | +"send", |
| 40 | +"react", |
| 41 | +"reactions", |
| 42 | +"read", |
| 43 | +"edit", |
| 44 | +"delete", |
| 45 | +"download-file", |
| 46 | +"upload-file", |
| 47 | +"pin", |
| 48 | +"unpin", |
| 49 | +"list-pins", |
| 50 | +"member-info", |
| 51 | +"emoji-list", |
| 52 | +], |
| 53 | +capabilities: ["presentation"], |
40 | 54 | }); |
41 | 55 | }); |
42 | 56 | |
@@ -75,9 +89,21 @@ describe("Slack message tools", () => {
|
75 | 89 | }, |
76 | 90 | } as OpenClawConfig; |
77 | 91 | |
78 | | -expect(listSlackMessageActions(cfg)).toEqual( |
79 | | -expect.arrayContaining(["read", "edit", "delete", "download-file", "upload-file"]), |
80 | | -); |
| 92 | +expect(listSlackMessageActions(cfg)).toEqual([ |
| 93 | +"send", |
| 94 | +"react", |
| 95 | +"reactions", |
| 96 | +"read", |
| 97 | +"edit", |
| 98 | +"delete", |
| 99 | +"download-file", |
| 100 | +"upload-file", |
| 101 | +"pin", |
| 102 | +"unpin", |
| 103 | +"list-pins", |
| 104 | +"member-info", |
| 105 | +"emoji-list", |
| 106 | +]); |
81 | 107 | }); |
82 | 108 | |
83 | 109 | it("honors the selected Slack account during discovery", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。