Skip to content

Commit

Permalink
Emit fallback day 1
Browse files Browse the repository at this point in the history
  • Loading branch information
jessealama authored and ptomato committed Mar 29, 2022
1 parent 9aaa22c commit fe40aea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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" });
Expand Down

0 comments on commit fe40aea

Please sign in to comment.