From 77b559ce68101b8cba60ccd98c7f8e29edd19d01 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Tue, 11 Oct 2022 13:33:47 -0700 Subject: [PATCH] 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 --- .../Temporal/Duration/prototype/round/order-of-operations.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/test/built-ins/Temporal/Duration/prototype/round/order-of-operations.js b/test/built-ins/Temporal/Duration/prototype/round/order-of-operations.js index e859518d1f..492ba99d6d 100644 --- a/test/built-ins/Temporal/Duration/prototype/round/order-of-operations.js +++ b/test/built-ins/Temporal/Duration/prototype/round/order-of-operations.js @@ -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