mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 01:10:21 +00:00
13 lines
391 B
TypeScript
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");
|
|
});
|
|
});
|