From 310016aee45f39202f132aeb644bf1e8d2b51c0a Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Mon, 8 Nov 2021 19:07:42 +0000 Subject: [PATCH] LibJS/Tests: Fix Temporal.PlainDate.prototype.equals() tests Just calling "expect()" doesn't do anything! --- .../builtins/Temporal/PlainDate/PlainDate.prototype.equals.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.equals.js b/Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.equals.js index 5550710fd6..4fe447e637 100644 --- a/Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.equals.js +++ b/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(); }); });