test: tighten gateway live helper client assertion · openclaw/openclaw@748fe6b
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -88,10 +88,8 @@ describe("gateway cli backend live helpers", () => {
|
88 | 88 | token: "gateway-token", |
89 | 89 | }); |
90 | 90 | |
91 | | -expect(client).toMatchObject({ |
92 | | -start: expect.any(Function), |
93 | | -stopAndWait: expect.any(Function), |
94 | | -}); |
| 91 | +expect(client.start).toBeTypeOf("function"); |
| 92 | +expect(client.stopAndWait).toBeTypeOf("function"); |
95 | 93 | expect(gatewayClientState.lastOptions).toMatchObject({ |
96 | 94 | url: "ws://127.0.0.1:18789", |
97 | 95 | token: "gateway-token", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。