Files
openclaw/src/acp/secret-file.test.ts
2026-03-10 23:40:10 +00:00

13 lines
391 B
TypeScript

import { describe, expect, it } from "vitest";
import { MAX_SECRET_FILE_BYTES, readSecretFromFile } from "./secret-file.js";
describe("readSecretFromFile", () => {
it("keeps the shared secret-file limit", () => {
expect(MAX_SECRET_FILE_BYTES).toBe(16 * 1024);
});
it("exposes the hardened secret reader", () => {
expect(typeof readSecretFromFile).toBe("function");
});
});