Files
openclaw/extensions/tokenjuice/manifest.test.ts
Peter Steinberger 0303af17f3 test: remove low-value implementation assertions (#121085)
* test: remove low-value implementation assertions

* test: refresh native i18n inventory
2026-08-09 08:48:48 -07:00

20 lines
626 B
TypeScript

// Tokenjuice tests cover manifest plugin behavior.
import fs from "node:fs";
import { describe, expect, it } from "vitest";
type TokenjuicePluginManifest = {
contracts?: {
agentToolResultMiddleware?: string[];
};
};
describe("tokenjuice package manifest", () => {
it("declares runtime-neutral tool result middleware ownership in the manifest contract", () => {
const manifest = JSON.parse(
fs.readFileSync(new URL("./openclaw.plugin.json", import.meta.url), "utf8"),
) as TokenjuicePluginManifest;
expect(manifest.contracts?.agentToolResultMiddleware).toEqual(["openclaw", "codex"]);
});
});