소스 검색

LibJS/Tests: Fix Temporal.PlainDate.prototype.equals() tests

Just calling "expect()" doesn't do anything!
Linus Groh 3 년 전
부모
커밋
310016aee4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.equals.js

+ 2 - 2
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.equals.js

@@ -7,7 +7,7 @@ describe("correct behavior", () => {
         const calendar = { hello: "friends" };
         const firstPlainDate = new Temporal.PlainDate(1, 1, 1, calendar);
         const secondPlainDate = new Temporal.PlainDate(0, 1, 1, calendar);
-        expect(firstPlainDate.equals(firstPlainDate));
-        expect(!firstPlainDate.equals(secondPlainDate));
+        expect(firstPlainDate.equals(firstPlainDate)).toBeTrue();
+        expect(firstPlainDate.equals(secondPlainDate)).toBeFalse();
     });
 });