mirror of https://github.com/tc39/test262.git
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:
parent
2df6c7d29a
commit
56fe761577
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue