mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-20 09:17:51 +00:00
test: assert config secret resolvability errors
This commit is contained in:
parent
5b9f94baae
commit
d760bf87f0
1 changed files with 5 additions and 3 deletions
|
|
@ -303,9 +303,11 @@ describe("config cli integration", () => {
|
|||
};
|
||||
expect(payload.ok).toBe(false);
|
||||
expect(payload.checks?.resolvability).toBe(true);
|
||||
expect(payload.errors?.some((entry) => entry.kind === "resolvability")).toBe(true);
|
||||
expect(payload.errors?.some((entry) => entry.ref?.includes("MISSING_TEST_SECRET"))).toBe(
|
||||
true,
|
||||
expect(payload.errors).toEqual(
|
||||
expect.arrayContaining([expect.objectContaining({ kind: "resolvability" })]),
|
||||
);
|
||||
expect(payload.errors?.map((entry) => entry.ref ?? "")).toEqual(
|
||||
expect.arrayContaining([expect.stringContaining("MISSING_TEST_SECRET")]),
|
||||
);
|
||||
} finally {
|
||||
envSnapshot.restore();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue