Temporal: Fix .slice() in test leftover from debugging

I had been using slice() here to cut down the list of operations to
compare during debugging, but accidentally left it in.
This commit is contained in:
Philip Chimento 2023-03-07 17:37:51 -08:00 committed by Ms2ger
parent 2df6c7d29a
commit 56fe761577
2 changed files with 4 additions and 2 deletions

View File

@ -245,4 +245,5 @@ const expectedOpsForWeekRounding = expected.concat(expectedOpsForCalendarDiffere
"call this.calendar.dateAdd", // 11.d MoveRelativeDate
]); // (11.g.iii MoveRelativeDate not called because days already balanced)
instance.since(otherDateTimePropertyBag, createOptionsObserver({ smallestUnit: "weeks" }));
assert.compareArray(actual.slice(expected.length), expectedOpsForWeekRounding.slice(expected.length), "order of operations with smallestUnit = weeks");
assert.compareArray(actual, expectedOpsForWeekRounding, "order of operations with smallestUnit = weeks");
actual.splice(0); // clear

View File

@ -245,4 +245,5 @@ const expectedOpsForWeekRounding = expected.concat(expectedOpsForCalendarDiffere
"call this.calendar.dateAdd", // 11.d MoveRelativeDate
]); // (11.g.iii MoveRelativeDate not called because days already balanced)
instance.until(otherDateTimePropertyBag, createOptionsObserver({ smallestUnit: "weeks" }));
assert.compareArray(actual.slice(expected.length), expectedOpsForWeekRounding.slice(expected.length), "order of operations with smallestUnit = weeks");
assert.compareArray(actual, expectedOpsForWeekRounding, "order of operations with smallestUnit = weeks");
actual.splice(0); // clear