mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 02:03:06 -05: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:
parent
029b6ad1a8
commit
1a80161011
Notes:
github-actions[bot]
2024-11-24 10:45:42 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/1a80161011b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2544
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue