From ecf06d7abec305ce884d0a2e0fe3531baa1a2fe9 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 6 May 2026 07:49:27 +0100 Subject: [PATCH] test(line): narrow config schema parse failures --- extensions/line/src/config-schema.test.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/extensions/line/src/config-schema.test.ts b/extensions/line/src/config-schema.test.ts index 945cc7f29ae..355a3417bf7 100644 --- a/extensions/line/src/config-schema.test.ts +++ b/extensions/line/src/config-schema.test.ts @@ -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"],