Files
openclaw/src/plugins/loader-records.test.ts
2026-05-01 19:08:46 +01:00

19 lines
570 B
TypeScript

import { describe, expect, it } from "vitest";
import { createPluginRecord } from "./loader-records.js";
describe("plugin loader records", () => {
it("preserves manifest-declared channel ids before runtime registration", () => {
const record = createPluginRecord({
id: "kitchen-sink",
name: "Kitchen Sink",
source: "/tmp/kitchen-sink/index.js",
origin: "global",
enabled: true,
channelIds: ["kitchen-sink-channel"],
configSchema: false,
});
expect(record.channelIds).toEqual(["kitchen-sink-channel"]);
});
});