mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 12:40:43 +00:00
test: assert config secret resolvability errors
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user