Skip to content

Commit

Permalink
fixup! Temporal: Update PlainMonthDay-related tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Aug 23, 2023
1 parent 1574f92 commit 5772f76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ TemporalHelpers.ISOMonths.forEach(({ month, monthCode, daysInMonth }) => {
TemporalHelpers.assertPlainMonthDay(result, "M02", 29, `${name} ${value} is constrained to 29 in leap year 2020`);

result = cal.monthDayFromFields({ year: 2021, [name]: value, day: 29 }, opt);
TemporalHelpers.assertPlainMonthDay(result, "M02", 28, `${name} ${value} is constrained to 28 in leap year 2020`);
TemporalHelpers.assertPlainMonthDay(result, "M02", 28, `${name} ${value} is constrained to 28 in common year 2021`);
});

0 comments on commit 5772f76

Please sign in to comment.