diff options
author | Linus Groh <mail@linusgroh.de> | 2021-11-08 19:07:42 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-11-08 19:12:54 +0000 |
commit | 310016aee45f39202f132aeb644bf1e8d2b51c0a (patch) | |
tree | 2d64e1921877b7e881a44005c1f089f59b30bb8b /Userland/Libraries | |
parent | 46d7c340283fa357e735aaf682878db8f6a47729 (diff) | |
download | serenity-310016aee45f39202f132aeb644bf1e8d2b51c0a.zip |
LibJS/Tests: Fix Temporal.PlainDate.prototype.equals() tests
Just calling "expect()" doesn't do anything!
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.equals.js | 4 |
1 files 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(); }); }); |