test: dedupe tokenjuice mock read · openclaw/openclaw@3945fd5
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -48,7 +48,7 @@ describe("tokenjuice bundled plugin", () => {
|
48 | 48 | |
49 | 49 | expect(createTokenjuiceOpenClawEmbeddedExtension).toHaveBeenCalledTimes(1); |
50 | 50 | expect(tokenjuiceFactory).toHaveBeenCalledTimes(1); |
51 | | -const registration = registerAgentToolResultMiddleware.mock.calls.at(0); |
| 51 | +const registration = registerAgentToolResultMiddleware.mock.calls[0]; |
52 | 52 | expect(typeof registration?.[0]).toBe("function"); |
53 | 53 | expect(registration?.[1]).toEqual({ runtimes: ["pi", "codex"] }); |
54 | 54 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。