1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:27:45 +00:00

LibJS: Implement parsing of TemporalRelativeToString

This commit is contained in:
Linus Groh 2021-11-19 20:53:07 +00:00
parent 98b876ad3f
commit 1583c7257c
12 changed files with 370 additions and 61 deletions

View file

@ -62,8 +62,7 @@ describe("correct behavior", () => {
expect(plainYearMonth.monthCode).toBe("M07");
});
// Un-skip once ParseISODateTime & ParseTemporalYearMonthString are fully implemented
test.skip("from date time string", () => {
test("from date time string", () => {
const plainYearMonth = Temporal.PlainYearMonth.from("2021-07-06T23:42:01Z");
expect(plainYearMonth.year).toBe(2021);
expect(plainYearMonth.month).toBe(7);