mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 09:41:11 +00:00
15 lines
473 B
TypeScript
15 lines
473 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { collectDeepCodeSafetyFindings } from "./audit-deep-code-safety.js";
|
|
|
|
describe("security audit plugin code safety gating", () => {
|
|
it("skips plugin code safety findings when deep audit is disabled", async () => {
|
|
const findings = await collectDeepCodeSafetyFindings({
|
|
cfg: {},
|
|
stateDir: "/tmp/openclaw-audit-deep-false-unused",
|
|
deep: false,
|
|
});
|
|
|
|
expect(findings).toEqual([]);
|
|
});
|
|
});
|