mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:17:44 +00:00
LibJS: Implement Temporal.Calendar.prototype.daysInYear
This commit is contained in:
parent
3160540d0e
commit
7f27035342
4 changed files with 41 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
describe("correct behavior", () => {
|
||||
test("length is 1", () => {
|
||||
expect(Temporal.Calendar.prototype.daysInYear).toHaveLength(1);
|
||||
});
|
||||
|
||||
test("basic functionality", () => {
|
||||
const calendar = new Temporal.Calendar("iso8601");
|
||||
const date = new Temporal.PlainDate(2021, 7, 23);
|
||||
expect(calendar.daysInYear(date)).toBe(365);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue