From 0e537e2e1ff9999d365ccafbcf5b13e3caa4328a Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Tue, 2 Nov 2021 17:46:27 +0100 Subject: [PATCH] LibJS/Tests: Fix arg name in Instant.prototype.toZonedDateTime() test "item", not "items". --- .../Temporal/Instant/Instant.prototype.toZonedDateTime.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.toZonedDateTime.js b/Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.toZonedDateTime.js index 07528143cd..44188fdca5 100644 --- a/Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.toZonedDateTime.js +++ b/Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.toZonedDateTime.js @@ -29,7 +29,7 @@ describe("errors", () => { }).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); for (const value of [123, NaN, Infinity, true, false, null, undefined]) { 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); expect(() => { instant.toZonedDateTime({}); }).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); expect(() => { instant.toZonedDateTime({ calendar: {} });