Files
openclaw/extensions/zalo/src/setup-status.test.ts
2026-03-29 09:10:38 +01:00

28 lines
787 B
TypeScript

import { describe, expect, it } from "vitest";
import { createPluginSetupWizardStatus } from "../../../test/helpers/plugins/setup-wizard.js";
import type { OpenClawConfig } from "../runtime-api.js";
import { zaloPlugin } from "./channel.js";
const zaloGetStatus = createPluginSetupWizardStatus(zaloPlugin);
describe("zalo setup wizard status", () => {
it("treats SecretRef botToken as configured", async () => {
const status = await zaloGetStatus({
cfg: {
channels: {
zalo: {
botToken: {
source: "env",
provider: "default",
id: "ZALO_BOT_TOKEN",
},
},
},
} as OpenClawConfig,
accountOverrides: {},
});
expect(status.configured).toBe(true);
});
});