mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-06 15:18:58 +00:00
test(line): narrow config schema parse failures
This commit is contained in:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user