test: clarify plugin install persist cache assertion · openclaw/openclaw@779122d
shakkernerd
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -123,9 +123,9 @@ describe("persistPluginInstall", () => {
|
123 | 123 | |
124 | 124 | expect(next).toEqual(enabledConfig); |
125 | 125 | expect(refreshPluginRegistry).toHaveBeenCalled(); |
126 | | -expect( |
127 | | -runtimeLogs.some((line) => line.includes("Plugin runtime cache invalidation failed")), |
128 | | -).toBe(true); |
| 126 | +expect(runtimeLogs).toEqual( |
| 127 | +expect.arrayContaining([expect.stringContaining("Plugin runtime cache invalidation failed")]), |
| 128 | +); |
129 | 129 | }); |
130 | 130 | |
131 | 131 | it("removes a replaced managed install directory before refreshing the registry", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。