mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
LibJS/Tests: Add test for PlainMonthDay default reference year
This commit is contained in:
parent
8f7a9e1e5c
commit
4520863c0e
Notes:
sideshowbarker
2024-07-18 05:41:32 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/4520863c0e2 Pull-request: https://github.com/SerenityOS/serenity/pull/9429 Reviewed-by: https://github.com/IdanHo ✅
1 changed files with 6 additions and 0 deletions
|
@ -50,4 +50,10 @@ describe("normal behavior", () => {
|
|||
expect(plainMonthDay).toBeInstanceOf(Temporal.PlainMonthDay);
|
||||
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…
Reference in a new issue