mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-14 18:51:04 +00:00
18 lines
574 B
TypeScript
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);
|
|
});
|
|
});
|