1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 19:35:06 +00:00

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

Just calling "expect()" doesn't do anything!
This commit is contained in:
Linus Groh 2021-11-08 19:07:42 +00:00
parent 46d7c34028
commit 310016aee4

View file

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