Files
openclaw/src/security/audit-synced-folder.test.ts
2026-04-06 13:05:39 +01:00

18 lines
574 B
TypeScript

import { describe, expect, it } from "vitest";
import { collectSyncedFolderFindings } from "./audit-extra.sync.js";
describe("security audit synced folder findings", () => {
it("warns when state/config look like a synced folder", () => {
const findings = collectSyncedFolderFindings({
stateDir: "/Users/test/Dropbox/.openclaw",
configPath: "/Users/test/Dropbox/.openclaw/openclaw.json",
});
expect(
findings.some(
(finding) => finding.checkId === "fs.synced_dir" && finding.severity === "warn",
),
).toBe(true);
});
});