Преглед на файлове

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();
     });
 });