mirror of https://github.com/openclaw/openclaw.git
29 lines
863 B
TypeScript
29 lines
863 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { createPluginSetupWizardStatus } from "../../../test/helpers/extensions/setup-wizard.js";
|
|
import type { OpenClawConfig } from "../runtime-api.js";
|
|
import { feishuPlugin } from "./channel.js";
|
|
|
|
const feishuGetStatus = createPluginSetupWizardStatus(feishuPlugin);
|
|
|
|
describe("feishu setup wizard status", () => {
|
|
it("treats SecretRef appSecret as configured when appId is present", async () => {
|
|
const status = await feishuGetStatus({
|
|
cfg: {
|
|
channels: {
|
|
feishu: {
|
|
appId: "cli_a123456",
|
|
appSecret: {
|
|
source: "env",
|
|
provider: "default",
|
|
id: "FEISHU_APP_SECRET",
|
|
},
|
|
},
|
|
},
|
|
} as OpenClawConfig,
|
|
accountOverrides: {},
|
|
});
|
|
|
|
expect(status.configured).toBe(true);
|
|
});
|
|
});
|