1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 15:17:46 +00:00

LibJS: Implement parsing of TemporalDurationString

This commit is contained in:
Linus Groh 2021-11-27 23:38:29 +00:00
parent 60c132d7d3
commit f7ba81ac52
8 changed files with 638 additions and 11 deletions

View file

@ -31,8 +31,7 @@ describe("correct behavior", () => {
expect(result.epochNanoseconds).toBe(1636762950100200300n);
});
// FIXME: Unskip when ParseTemporalDurationString is implemented.
test.skip("duration string", () => {
test("duration string", () => {
const plainDateTime = new Temporal.PlainDateTime(2021, 11, 12, 0, 22, 30, 100, 200, 300);
const timeZone = new Temporal.TimeZone("UTC");
const zonedDateTime = plainDateTime.toZonedDateTime(timeZone);

View file

@ -31,8 +31,7 @@ describe("correct behavior", () => {
expect(result.epochNanoseconds).toBe(1636590150100200300n);
});
// FIXME: Unskip when ParseTemporalDurationString is implemented.
test.skip("duration string", () => {
test("duration string", () => {
const plainDateTime = new Temporal.PlainDateTime(2021, 11, 12, 0, 22, 30, 100, 200, 300);
const timeZone = new Temporal.TimeZone("UTC");
const zonedDateTime = plainDateTime.toZonedDateTime(timeZone);