소스 검색

LibJS/Tests: Fix arg name in Instant.prototype.toZonedDateTime() test

"item", not "items".
Linus Groh 3 년 전
부모
커밋
0e537e2e1f
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.toZonedDateTime.js

+ 3 - 3
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: {} });