test: count routed plugin registry loads · openclaw/openclaw@fd05a6e
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -113,7 +113,7 @@ describe("tryRouteCli", () => {
|
113 | 113 | |
114 | 114 | await tryRouteCli(["node", "openclaw", "agents", "--json"]); |
115 | 115 | |
116 | | -expect(ensurePluginRegistryLoadedMock).toHaveBeenCalled(); |
| 116 | +expect(ensurePluginRegistryLoadedMock).toHaveBeenCalledTimes(1); |
117 | 117 | expect(captured[0]).toBe(true); |
118 | 118 | expect(loggingState.forceConsoleToStderr).toBe(true); |
119 | 119 | }); |
@@ -146,7 +146,7 @@ describe("tryRouteCli", () => {
|
146 | 146 | |
147 | 147 | await tryRouteCli(["node", "openclaw", "agents"]); |
148 | 148 | |
149 | | -expect(ensurePluginRegistryLoadedMock).toHaveBeenCalled(); |
| 149 | +expect(ensurePluginRegistryLoadedMock).toHaveBeenCalledTimes(1); |
150 | 150 | expect(captured[0]).toBe(false); |
151 | 151 | expect(loggingState.forceConsoleToStderr).toBe(false); |
152 | 152 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。