mirror of
https://github.com/RGBCube/serenity
synced 2025-06-03 23:28:14 +00:00
LibJS/Tests: Fix arg name in Instant.prototype.toZonedDateTime() test
"item", not "items".
This commit is contained in:
parent
654380c2c2
commit
0e537e2e1f
1 changed files with 3 additions and 3 deletions
|
@ -29,7 +29,7 @@ describe("errors", () => {
|
||||||
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.Instant");
|
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.Instant");
|
||||||
});
|
});
|
||||||
|
|
||||||
test("items argument must be an object", () => {
|
test("item argument must be an object", () => {
|
||||||
const instant = new Temporal.Instant(0n);
|
const instant = new Temporal.Instant(0n);
|
||||||
for (const value of [123, NaN, Infinity, true, false, null, undefined]) {
|
for (const value of [123, NaN, Infinity, true, false, null, undefined]) {
|
||||||
expect(() => {
|
expect(() => {
|
||||||
|
@ -38,14 +38,14 @@ describe("errors", () => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
test("items argument must have a 'calendar' property", () => {
|
test("item argument must have a 'calendar' property", () => {
|
||||||
const instant = new Temporal.Instant(0n);
|
const instant = new Temporal.Instant(0n);
|
||||||
expect(() => {
|
expect(() => {
|
||||||
instant.toZonedDateTime({});
|
instant.toZonedDateTime({});
|
||||||
}).toThrowWithMessage(TypeError, "Required property calendar is missing or undefined");
|
}).toThrowWithMessage(TypeError, "Required property calendar is missing or undefined");
|
||||||
});
|
});
|
||||||
|
|
||||||
test("items argument must have a 'timeZone' property", () => {
|
test("item argument must have a 'timeZone' property", () => {
|
||||||
const instant = new Temporal.Instant(0n);
|
const instant = new Temporal.Instant(0n);
|
||||||
expect(() => {
|
expect(() => {
|
||||||
instant.toZonedDateTime({ calendar: {} });
|
instant.toZonedDateTime({ calendar: {} });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue