test: tighten zalouser setup assertions

This commit is contained in:
Shakker
2026-05-11 08:58:39 +01:00
parent f4aa97f660
commit c249163537

View File

@@ -15,16 +15,13 @@ describe("zalouser setup plugin", () => {
try {
await withEnvAsync({ OPENCLAW_STATE_DIR: stateDir }, async () => {
await expect(
zalouserSetupGetStatus({
cfg: {},
accountOverrides: {},
}),
).resolves.toMatchObject({
channel: "zalouser",
configured: false,
statusLines: ["Zalo Personal: needs QR login"],
const status = await zalouserSetupGetStatus({
cfg: {},
accountOverrides: {},
});
expect(status.channel).toBe("zalouser");
expect(status.configured).toBe(false);
expect(status.statusLines).toEqual(["Zalo Personal: needs QR login"]);
});
} finally {
await rm(stateDir, { recursive: true, force: true });