test: quarantine dangerous skill warnings · openclaw/openclaw@a5912b9
shakkernerd
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -163,10 +163,9 @@ describe("installSkill code safety scanning", () => {
|
163 | 163 | |
164 | 164 | expect(result.ok).toBe(false); |
165 | 165 | expect(result.message).toContain('Skill "danger-skill" installation blocked'); |
166 | | -expect( |
167 | | -(result.warnings ?? []).some((warning) => warning.includes("dangerous code patterns")), |
168 | | -).toBe(true); |
169 | | -expect((result.warnings ?? []).some((warning) => warning.includes("runner.js:1"))).toBe(true); |
| 166 | +const warningOutput = (result.warnings ?? []).join("\n"); |
| 167 | +expect(warningOutput).toContain("dangerous code patterns"); |
| 168 | +expect(warningOutput).toContain("runner.js:1"); |
170 | 169 | expect(runCommandWithTimeoutMock).not.toHaveBeenCalled(); |
171 | 170 | }); |
172 | 171 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。