mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-22 03:51:18 +00:00
test(line): narrow config schema parse failures
This commit is contained in:
parent
8f3a34e2a1
commit
ecf06d7abe
1 changed files with 6 additions and 2 deletions
|
|
@ -9,7 +9,9 @@ describe("LineConfigSchema", () => {
|
|||
dmPolicy: "open",
|
||||
});
|
||||
|
||||
expect(result.success).toBe(false);
|
||||
if (result.success) {
|
||||
throw new Error("Expected config validation to fail");
|
||||
}
|
||||
expect(result.error.issues).toEqual([
|
||||
expect.objectContaining({
|
||||
path: ["allowFrom"],
|
||||
|
|
@ -40,7 +42,9 @@ describe("LineConfigSchema", () => {
|
|||
},
|
||||
});
|
||||
|
||||
expect(result.success).toBe(false);
|
||||
if (result.success) {
|
||||
throw new Error("Expected account config validation to fail");
|
||||
}
|
||||
expect(result.error.issues).toEqual([
|
||||
expect.objectContaining({
|
||||
path: ["accounts", "work", "allowFrom"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue