mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 15:24:32 +00:00
test: migrate suites to e2e coverage layout
This commit is contained in:
13
src/agents/tool-policy.conformance.e2e.test.ts
Normal file
13
src/agents/tool-policy.conformance.e2e.test.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { describe, expect, test } from "vitest";
|
||||
import { TOOL_POLICY_CONFORMANCE } from "./tool-policy.conformance.js";
|
||||
import { TOOL_GROUPS } from "./tool-policy.js";
|
||||
|
||||
describe("TOOL_POLICY_CONFORMANCE", () => {
|
||||
test("matches exported TOOL_GROUPS exactly", () => {
|
||||
expect(TOOL_POLICY_CONFORMANCE.toolGroups).toEqual(TOOL_GROUPS);
|
||||
});
|
||||
|
||||
test("is JSON-serializable", () => {
|
||||
expect(() => JSON.stringify(TOOL_POLICY_CONFORMANCE)).not.toThrow();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user