mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:40:44 +00:00
perf(test): narrow security audit imports
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import type { OpenClawConfig } from "../config/config.js";
|
||||
import {
|
||||
collectAttackSurfaceSummaryFindings,
|
||||
@@ -6,6 +6,10 @@ import {
|
||||
} from "./audit-extra.summary.js";
|
||||
import { safeEqualSecret } from "./secret-equal.js";
|
||||
|
||||
vi.mock("../plugins/web-search-credential-presence.js", () => ({
|
||||
hasConfiguredWebSearchCredential: () => false,
|
||||
}));
|
||||
|
||||
describe("collectAttackSurfaceSummaryFindings", () => {
|
||||
it.each([
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user