Emit fallback day 1

This commit is contained in:
Jesse Alama 2022-02-21 14:14:44 +01:00 committed by Philip Chimento
parent 9aaa22cb06
commit fe40aea50c
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ const yearmonth1 = new Temporal.PlainYearMonth(2000, 5);
const yearmonth2 = new Temporal.PlainYearMonth(2000, 5, calendar);
[
[yearmonth1, "2000-05[u-ca=iso8601]"],
[yearmonth1, "2000-05-01[u-ca=iso8601]"], // fallback day 1 used
[yearmonth2, "2000-05-01[u-ca=custom]"],
].forEach(([yearmonth, expected]) => {
const result = yearmonth.toString({ calendarName: "always" });