test: assert chutes token refresh request · openclaw/openclaw@39bd6da
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -89,7 +89,8 @@ describe("auth-profiles (chutes)", () => {
|
89 | 89 | }); |
90 | 90 | |
91 | 91 | expect(resolved?.apiKey).toBe("at_new"); |
92 | | -expect(fetchSpy).toHaveBeenCalled(); |
| 92 | +expect(fetchSpy).toHaveBeenCalledTimes(1); |
| 93 | +expect(fetchSpy).toHaveBeenCalledWith(CHUTES_TOKEN_ENDPOINT, expect.any(Object)); |
93 | 94 | |
94 | 95 | const persisted = JSON.parse(await fs.readFile(authProfilePath, "utf8")) as { |
95 | 96 | profiles?: Record<string, { access?: string }>; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。