test: clarify plugin install persist warning assertion · openclaw/openclaw@16cdf85
shakkernerd
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -388,7 +388,9 @@ describe("persistPluginInstall", () => {
|
388 | 388 | expect(next).toEqual(enabledConfig); |
389 | 389 | expect(refreshPluginRegistry).toHaveBeenCalled(); |
390 | 390 | expect(clearPluginRegistryLoadCache).toHaveBeenCalledTimes(1); |
391 | | -expect(runtimeLogs.some((line) => line.includes("Plugin registry refresh failed"))).toBe(true); |
| 391 | +expect(runtimeLogs).toEqual( |
| 392 | +expect.arrayContaining([expect.stringContaining("Plugin registry refresh failed")]), |
| 393 | +); |
392 | 394 | }); |
393 | 395 | |
394 | 396 | it("removes stale denylist entries before enabling installed plugins", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。