test: tighten imessage action list assertions · openclaw/openclaw@e3d1432
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -96,9 +96,18 @@ describe("imessage message actions", () => {
|
96 | 96 | currentChannelId: "chat_guid:iMessage;+;chat0000", |
97 | 97 | } as never); |
98 | 98 | |
99 | | -expect(described?.actions).toEqual( |
100 | | -expect.arrayContaining(["react", "reply", "sendWithEffect", "upload-file"]), |
101 | | -); |
| 99 | +expect(described?.actions).toStrictEqual([ |
| 100 | +"react", |
| 101 | +"edit", |
| 102 | +"reply", |
| 103 | +"sendWithEffect", |
| 104 | +"renameGroup", |
| 105 | +"setGroupIcon", |
| 106 | +"addParticipant", |
| 107 | +"removeParticipant", |
| 108 | +"leaveGroup", |
| 109 | +"upload-file", |
| 110 | +]); |
102 | 111 | }); |
103 | 112 | |
104 | 113 | it("advertises BB-parity actions when private API and selectors are available", () => { |
@@ -116,21 +125,19 @@ describe("imessage message actions", () => {
|
116 | 125 | currentChannelId: "chat_guid:iMessage;+;chat0000", |
117 | 126 | } as never); |
118 | 127 | |
119 | | -expect(described?.actions).toEqual( |
120 | | -expect.arrayContaining([ |
121 | | -"react", |
122 | | -"edit", |
123 | | -"unsend", |
124 | | -"reply", |
125 | | -"sendWithEffect", |
126 | | -"renameGroup", |
127 | | -"setGroupIcon", |
128 | | -"addParticipant", |
129 | | -"removeParticipant", |
130 | | -"leaveGroup", |
131 | | -"upload-file", |
132 | | -]), |
133 | | -); |
| 128 | +expect(described?.actions).toStrictEqual([ |
| 129 | +"react", |
| 130 | +"edit", |
| 131 | +"unsend", |
| 132 | +"reply", |
| 133 | +"sendWithEffect", |
| 134 | +"renameGroup", |
| 135 | +"setGroupIcon", |
| 136 | +"addParticipant", |
| 137 | +"removeParticipant", |
| 138 | +"leaveGroup", |
| 139 | +"upload-file", |
| 140 | +]); |
134 | 141 | }); |
135 | 142 | |
136 | 143 | it("respects configured action gates", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。