mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-25 10:49:34 +00:00
12 lines
501 B
TypeScript
12 lines
501 B
TypeScript
// Discord tests cover setup entry plugin behavior.
|
|
import { describe, expect, it } from "vitest";
|
|
import setupEntry from "./setup-entry.js";
|
|
|
|
describe("discord setup entry", () => {
|
|
it("exposes legacy state migration detector through setup entry metadata", () => {
|
|
expect(setupEntry.kind).toBe("bundled-channel-setup-entry");
|
|
expect(setupEntry.features).toEqual({ legacyStateMigrations: true });
|
|
expect(setupEntry.loadLegacyStateMigrationDetector?.()).toBeTypeOf("function");
|
|
});
|
|
});
|