mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 21:50:42 +00:00
19 lines
570 B
TypeScript
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"]);
|
|
});
|
|
});
|