test: tighten zalouser setup assertions · openclaw/openclaw@c249163
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -15,16 +15,13 @@ describe("zalouser setup plugin", () => {
|
15 | 15 | |
16 | 16 | try { |
17 | 17 | await withEnvAsync({ OPENCLAW_STATE_DIR: stateDir }, async () => { |
18 | | -await expect( |
19 | | -zalouserSetupGetStatus({ |
20 | | -cfg: {}, |
21 | | -accountOverrides: {}, |
22 | | -}), |
23 | | -).resolves.toMatchObject({ |
24 | | -channel: "zalouser", |
25 | | -configured: false, |
26 | | -statusLines: ["Zalo Personal: needs QR login"], |
| 18 | +const status = await zalouserSetupGetStatus({ |
| 19 | +cfg: {}, |
| 20 | +accountOverrides: {}, |
27 | 21 | }); |
| 22 | +expect(status.channel).toBe("zalouser"); |
| 23 | +expect(status.configured).toBe(false); |
| 24 | +expect(status.statusLines).toEqual(["Zalo Personal: needs QR login"]); |
28 | 25 | }); |
29 | 26 | } finally { |
30 | 27 | await rm(stateDir, { recursive: true, force: true }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。