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:
Timothy Flynn 2024-11-23 19:50:49 -05:00 committed by Andreas Kling
parent 029b6ad1a8
commit 1a80161011
Notes: github-actions[bot] 2024-11-24 10:45:42 +00:00
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);
});