1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:57:44 +00:00

LibJS: Implement parsing of TemporalDateString

This commit is contained in:
Linus Groh 2021-11-19 18:14:13 +00:00
parent 3f1af7c05f
commit 02e7de2cba
8 changed files with 27 additions and 13 deletions

View file

@ -28,8 +28,7 @@ describe("correct behavior", () => {
expect(createdPlainDate.day).toBe(26);
});
// Un-skip once ParseISODateTime & ParseTemporalDateString are implemented
test.skip("PlainDate string argument", () => {
test("PlainDate string argument", () => {
const createdPlainDate = Temporal.PlainDate.from("2021-07-26");
expect(createdPlainDate.year).toBe(2021);
expect(createdPlainDate.month).toBe(7);