Temporal: Fix expectation for observable operations in Duration.p.round()

I had missed that there's an early return step from
UnbalanceDurationRelative if years, months, weeks, and days are all 0.

Closes: #3684
This commit is contained in:
Philip Chimento 2022-10-11 13:33:47 -07:00 committed by Ms2ger
parent f5369c26a4
commit 77b559ce68
1 changed files with 0 additions and 5 deletions

View File

@ -202,9 +202,6 @@ assert.compareArray(actual, expectedOpsForMonthToYearBalancing, "order of operat
actual.splice(0, actual.length); // clear
const expectedOpsForDayToMonthBalancing = expected.concat([
// UnbalanceDurationRelative
"get options.relativeTo.calendar.dateAdd", // 9.b
"get options.relativeTo.calendar.dateUntil", // 9.c
// BalanceDurationRelative
"get options.relativeTo.calendar.dateAdd", // 11.a
"call options.relativeTo.calendar.dateAdd", // 11.b MoveRelativeDate
@ -216,8 +213,6 @@ assert.compareArray(actual, expectedOpsForDayToMonthBalancing, "order of operati
actual.splice(0, actual.length); // clear
const expectedOpsForDayToWeekBalancing = expected.concat([
// UnbalanceDurationRelative
"get options.relativeTo.calendar.dateAdd", // 10.b
// BalanceDurationRelative
"get options.relativeTo.calendar.dateAdd", // 12.b
"call options.relativeTo.calendar.dateAdd", // 12.c MoveRelativeDate