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:
parent
46d7c34028
commit
310016aee4
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue