mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:27:35 +00:00
LibJS: Simplify Temporal unit AOs
This is an editorial change in the Temporal spec.
See: 1b3d018
This commit is contained in:
parent
b9beb2b120
commit
4c77575ec5
16 changed files with 347 additions and 390 deletions
|
@ -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`
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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`
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue