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>
This commit is contained in:
google-labs-jules[bot] 2026-10-07 03:56:18 +00:00
parent bede889ced
commit 8900b19c1c

View file

@ -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();
});
});