mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 02:37:35 +00:00
LibJS/Tests: Add test for PlainMonthDay default reference year
This commit is contained in:
parent
8f7a9e1e5c
commit
4520863c0e
1 changed files with 6 additions and 0 deletions
|
@ -50,4 +50,10 @@ describe("normal behavior", () => {
|
||||||
expect(plainMonthDay).toBeInstanceOf(Temporal.PlainMonthDay);
|
expect(plainMonthDay).toBeInstanceOf(Temporal.PlainMonthDay);
|
||||||
expect(Object.getPrototypeOf(plainMonthDay)).toBe(Temporal.PlainMonthDay.prototype);
|
expect(Object.getPrototypeOf(plainMonthDay)).toBe(Temporal.PlainMonthDay.prototype);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test("default reference year is 1972", () => {
|
||||||
|
const plainMonthDay = new Temporal.PlainMonthDay(7, 6);
|
||||||
|
const fields = plainMonthDay.getISOFields();
|
||||||
|
expect(fields.isoYear).toBe(1972);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue