mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:57:35 +00:00
LibJS: Implement Temporal.PlainDate.prototype.equals & Required AO
This commit is contained in:
parent
cf78efaef5
commit
d804ce830d
5 changed files with 69 additions and 0 deletions
|
@ -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));
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue