mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-17 21:10:54 +00:00
25 lines
663 B
TypeScript
25 lines
663 B
TypeScript
import type { OpenClawConfig } from "openclaw/plugin-sdk/zalo";
|
|
import { describe, expect, it } from "vitest";
|
|
import { zaloOnboardingAdapter } from "./onboarding.js";
|
|
|
|
describe("zalo onboarding status", () => {
|
|
it("treats SecretRef botToken as configured", async () => {
|
|
const status = await zaloOnboardingAdapter.getStatus({
|
|
cfg: {
|
|
channels: {
|
|
zalo: {
|
|
botToken: {
|
|
source: "env",
|
|
provider: "default",
|
|
id: "ZALO_BOT_TOKEN",
|
|
},
|
|
},
|
|
},
|
|
} as OpenClawConfig,
|
|
accountOverrides: {},
|
|
});
|
|
|
|
expect(status.configured).toBe(true);
|
|
});
|
|
});
|