mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-11 02:12:00 +03:00
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:
parent
bede889ced
commit
8900b19c1c
1 changed files with 1 additions and 0 deletions
|
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue