mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-27 09:01:09 +03:00
7b81d97ec2
Co-authored-by: Mark Pors <1078320+pors@users.noreply.github.com>
17 lines
603 B
TypeScript
17 lines
603 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
|
|
import { buildConfigSchema } from "./schema.js";
|
|
|
|
describe("config schema", () => {
|
|
it("exports schema + hints", () => {
|
|
const res = buildConfigSchema();
|
|
const schema = res.schema as { properties?: Record<string, unknown> };
|
|
expect(schema.properties?.gateway).toBeTruthy();
|
|
expect(schema.properties?.agents).toBeTruthy();
|
|
expect(res.uiHints.gateway?.label).toBe("Gateway");
|
|
expect(res.uiHints["gateway.auth.token"]?.sensitive).toBe(true);
|
|
expect(res.version).toBeTruthy();
|
|
expect(res.generatedAt).toBeTruthy();
|
|
});
|
|
});
|