test: fix overflow compaction mock call typing (#75117) · openclaw/openclaw@ee07601
steipete
·
2026-05-12
·
via Recent Commits to openclaw:main
File tree
src/agents/pi-embedded-runner
| Original file line number | Diff line number | Diff line change |
|---|
@@ -250,7 +250,9 @@ describe("runEmbeddedPiAgent overflow compaction trigger routing", () => {
|
250 | 250 | }); |
251 | 251 | |
252 | 252 | expect(mockedEnsureAuthProfileStore).not.toHaveBeenCalled(); |
253 | | -const authStoreCall = mockedEnsureAuthProfileStoreWithoutExternalProfiles.mock.calls[0]; |
| 253 | +const authStoreCall = mockedEnsureAuthProfileStoreWithoutExternalProfiles.mock.calls[0] as |
| 254 | +| [string | undefined, { allowKeychainPrompt?: boolean } | undefined] |
| 255 | +| undefined; |
254 | 256 | expect(typeof authStoreCall?.[0]).toBe("string"); |
255 | 257 | expect( |
256 | 258 | String(authStoreCall?.[0]).replaceAll("\\", "/").endsWith("/.openclaw/agents/main/agent"), |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。