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