mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:07:35 +00:00
LibJS: Implement parsing of TemporalZonedDateTimeString
This commit is contained in:
parent
3b1de431cc
commit
98b876ad3f
5 changed files with 62 additions and 19 deletions
|
@ -148,4 +148,10 @@ describe("errors", () => {
|
|||
});
|
||||
}).toThrowWithMessage(TypeError, "Required property day is missing or undefined");
|
||||
});
|
||||
|
||||
test("invalid zoned date time string", () => {
|
||||
expect(() => {
|
||||
Temporal.ZonedDateTime.from("foo");
|
||||
}).toThrowWithMessage(RangeError, "Invalid zoned date time string 'foo'");
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue