mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibJS: Fix Temporal.PlainMonthDay.prototype.calendarId references
Small mistake porting old Temporal tests to the new spec. This getter was `.calendar` in the old Temporal spec.
This commit is contained in:
committed by
Andreas Kling
parent
029b6ad1a8
commit
1a80161011
@@ -6,7 +6,7 @@ describe("correct behavior", () => {
|
||||
test("basic functionality", () => {
|
||||
const plainDate = new Temporal.PlainDate(2021, 7, 6);
|
||||
const plainMonthDay = plainDate.toPlainMonthDay();
|
||||
expect(plainMonthDay.calendar).toBe(plainDate.calendar);
|
||||
expect(plainMonthDay.calendarId).toBe(plainDate.calendarId);
|
||||
expect(plainMonthDay.monthCode).toBe("M07");
|
||||
expect(plainMonthDay.day).toBe(6);
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ describe("correct behavior", () => {
|
||||
test("basic functionality", () => {
|
||||
const plainDate = new Temporal.PlainDate(2021, 7, 6);
|
||||
const plainYearMonth = plainDate.toPlainYearMonth();
|
||||
expect(plainYearMonth.calendar).toBe(plainDate.calendar);
|
||||
expect(plainYearMonth.calendarId).toBe(plainDate.calendarId);
|
||||
expect(plainYearMonth.year).toBe(2021);
|
||||
expect(plainYearMonth.month).toBe(7);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user