mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-26 14:25:13 +00:00
test: tighten zalouser setup assertions
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user