From 8900b19c1c0fe54fa09efb6c029f115ba2230344 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 7 Oct 2026 03:56:18 +0000 Subject: [PATCH] Add missing error test for invalid IANA timezone in resolveZone Tested `resolveZone` boundary conditions by verifying that invalid strings trigger the internal Intl.DateTimeFormat error catch and correctly evaluate to null. Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com> --- src/engine/datetime.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/datetime.test.ts b/src/engine/datetime.test.ts index 91f51d4..9ee00b2 100644 --- a/src/engine/datetime.test.ts +++ b/src/engine/datetime.test.ts @@ -78,6 +78,7 @@ describe("datetime", () => { it("should return null for unknown timezones", () => { expect(resolveZone(["Unknown", "City"])).toBeNull(); expect(resolveZone(["Invalid/Timezone"])).toBeNull(); + expect(resolveZone(["Invalid", "Zone"])).toBeNull(); }); });