test: fix lint issues on main · openclaw/openclaw@9e31c5f
steipete
·
2026-05-10
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -492,7 +492,7 @@ describe("executeNodeHostCommand", () => {
|
492 | 492 | const details = result.details; |
493 | 493 | expect(details?.status).toBe("completed"); |
494 | 494 | if (details?.status !== "completed") { |
495 | | -throw new Error(`expected completed details, got ${String(details?.status)}`); |
| 495 | +throw new Error(`expected completed details, got ${details?.status ?? "missing"}`); |
496 | 496 | } |
497 | 497 | expect(details.exitCode).toBe(0); |
498 | 498 | expect(details.aggregated).toBe(""); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1848,7 +1848,7 @@ describe("discoverOpenClawPlugins", () => {
|
1848 | 1848 | const diagnostic = result.diagnostics.find( |
1849 | 1849 | (entry) => |
1850 | 1850 | entry.pluginId === "actual-id" && |
1851 | | -/alias-dir$/u.test(entry.source ?? "") && |
| 1851 | +(entry.source ?? "").endsWith("alias-dir") && |
1852 | 1852 | entry.message.includes("blocked plugin candidate: world-writable path"), |
1853 | 1853 | ); |
1854 | 1854 | expect(diagnostic).toBeDefined(); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。