test: tighten feishu setup status assertion · openclaw/openclaw@4efaded
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -172,13 +172,24 @@ describe("feishu setup wizard status", () => {
|
172 | 172 | |
173 | 173 | expect(status.configured).toBe(true); |
174 | 174 | expect(status.statusLines).toEqual(["Feishu: connected as Feishu Main"]); |
175 | | -expect(probeFeishuMock).toHaveBeenCalledWith( |
176 | | -expect.objectContaining({ |
177 | | -accountId: "main-bot", |
| 175 | +expect(probeFeishuMock).toHaveBeenCalledWith({ |
| 176 | +accountId: "main-bot", |
| 177 | +selectionSource: "explicit-default", |
| 178 | +enabled: true, |
| 179 | +configured: true, |
| 180 | +name: undefined, |
| 181 | +appId: "cli_main", |
| 182 | +appSecret: "main-app-secret", // pragma: allowlist secret |
| 183 | +encryptKey: undefined, |
| 184 | +verificationToken: undefined, |
| 185 | +domain: "feishu", |
| 186 | +config: { |
| 187 | +enabled: true, |
178 | 188 | appId: "cli_main", |
179 | 189 | appSecret: "main-app-secret", // pragma: allowlist secret |
180 | | -}), |
181 | | -); |
| 190 | +connectionMode: "websocket", |
| 191 | +}, |
| 192 | +}); |
182 | 193 | }); |
183 | 194 | |
184 | 195 | it("does not fallback to top-level appId when account explicitly sets empty appId", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。