Skip to content

Commit

Permalink
Use correct keys in non-iso-calendars.js
Browse files Browse the repository at this point in the history
Using Object.keys() of the expected values in each case decouples these
tests.
  • Loading branch information
ptomato committed Apr 10, 2024
1 parent b631d66 commit 550028e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/staging/Intl402/Temporal/old/non-iso-calendars.js
Original file line number Diff line number Diff line change
Expand Up @@ -854,8 +854,7 @@ var tests = {
}
}
};
var calendars = Object.keys(addMonthsCases);
for (var id of calendars) {
for (var id of Object.keys(addMonthsCases)) {
for (var [unit, {duration, results, startDate}] of Object.entries(tests)) {
var values = results[id];
duration = Temporal.Duration.from(duration);
Expand Down Expand Up @@ -1269,7 +1268,7 @@ var daysInMonthCases = {
}
};
totalNow = 0;
for (var id of calendars) {
for (var id of Object.keys(daysInMonthCases)) {
var {year, leap, days} = daysInMonthCases[id];
var date = hasOutdatedChineseIcuData && (id === "chinese" || id === "dangi") ? undefined : Temporal.PlainDate.from({
year,
Expand Down

0 comments on commit 550028e

Please sign in to comment.