1
Fork 0
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:
Linus Groh 2021-11-19 20:43:52 +00:00
parent 3b1de431cc
commit 98b876ad3f
5 changed files with 62 additions and 19 deletions

View file

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