test(diagnostics): satisfy security event fixture types · openclaw/openclaw@7de5bdc
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -340,15 +340,15 @@ describe("diagnostic-events", () => {
|
340 | 340 | action: "tool.execution.blocked", |
341 | 341 | outcome: "denied", |
342 | 342 | severity: "medium", |
343 | | -} as Parameters<typeof emitDiagnosticEvent>[0]); |
| 343 | +} as unknown as Parameters<typeof emitDiagnosticEvent>[0]); |
344 | 344 | emitTrustedDiagnosticEvent({ |
345 | 345 | type: "security.event", |
346 | 346 | eventId: "generic-trusted-security-event", |
347 | 347 | category: "tool", |
348 | 348 | action: "tool.execution.blocked", |
349 | 349 | outcome: "denied", |
350 | 350 | severity: "medium", |
351 | | -} as Parameters<typeof emitTrustedDiagnosticEvent>[0]); |
| 351 | +} as unknown as Parameters<typeof emitTrustedDiagnosticEvent>[0]); |
352 | 352 | emitTrustedSecurityEvent({ |
353 | 353 | eventId: "security-event-1", |
354 | 354 | category: "tool", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。