1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:07:36 +00:00

LibJS: Implement Temporal.PlainDate.prototype.equals & Required AO

This commit is contained in:
Idan Horowitz 2021-07-21 22:21:45 +03:00 committed by Linus Groh
parent cf78efaef5
commit d804ce830d
5 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,13 @@
describe("correct behavior", () => {
test("length is 1", () => {
expect(Temporal.PlainDate.prototype.equals).toHaveLength(1);
});
test("basic functionality", () => {
const calendar = { hello: "friends" };
const first_plain_date = new Temporal.PlainDate(1, 1, 1, calendar);
const second_plain_date = new Temporal.PlainDate(0, 1, 1, calendar);
expect(first_plain_date.equals(first_plain_date));
expect(!first_plain_date.equals(second_plain_date));
});
});