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

LibJS: Simplify Temporal unit AOs

This is an editorial change in the Temporal spec.

See: 1b3d018
This commit is contained in:
Linus Groh 2022-06-09 22:42:42 +01:00 committed by Andreas Kling
parent b9beb2b120
commit 4c77575ec5
16 changed files with 347 additions and 390 deletions

View file

@ -175,7 +175,7 @@ describe("errors", () => {
dateOne.since(dateTwo, pluralSmallestUnitOptions);
}).toThrowWithMessage(
RangeError,
`${smallestUnit} is not a valid value for option smallestUnit`
`${smallestUnit}s is not a valid value for option smallestUnit`
);
}
@ -194,7 +194,7 @@ describe("errors", () => {
dateOne.since(dateTwo, pluralLargestUnitOptions);
}).toThrowWithMessage(
RangeError,
`${largestUnit} is not a valid value for option largestUnit`
`${largestUnit}s is not a valid value for option largestUnit`
);
}
});

View file

@ -170,7 +170,7 @@ describe("errors", () => {
dateOne.until(dateTwo, pluralSmallestUnitOptions);
}).toThrowWithMessage(
RangeError,
`${smallestUnit} is not a valid value for option smallestUnit`
`${smallestUnit}s is not a valid value for option smallestUnit`
);
}
@ -189,7 +189,7 @@ describe("errors", () => {
dateOne.until(dateTwo, pluralLargestUnitOptions);
}).toThrowWithMessage(
RangeError,
`${largestUnit} is not a valid value for option largestUnit`
`${largestUnit}s is not a valid value for option largestUnit`
);
}
});