mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-19 22:10:51 +00:00
25 lines
743 B
TypeScript
25 lines
743 B
TypeScript
import type { OpenClawConfig } from "openclaw/plugin-sdk/mattermost";
|
|
import { describe, expect, it } from "vitest";
|
|
import { mattermostSetupWizard } from "./setup-surface.js";
|
|
|
|
describe("mattermost setup status", () => {
|
|
it("treats SecretRef botToken as configured when baseUrl is present", async () => {
|
|
const configured = await mattermostSetupWizard.status.resolveConfigured({
|
|
cfg: {
|
|
channels: {
|
|
mattermost: {
|
|
baseUrl: "https://chat.example.test",
|
|
botToken: {
|
|
source: "env",
|
|
provider: "default",
|
|
id: "MATTERMOST_BOT_TOKEN",
|
|
},
|
|
},
|
|
},
|
|
} as OpenClawConfig,
|
|
});
|
|
|
|
expect(configured).toBe(true);
|
|
});
|
|
});
|