Skip to content

Commit 9f9949b

Browse files
committed
ACP2E-1143: trigger tax / subtotal estimates refresh on shipping address updates; jasmine unit test update
1 parent 530b97e commit 9f9949b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/tests/js/jasmine/tests/app/code/Magento/Checkout/frontend/js/model/cart/estimate-service.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ define([
4646
},
4747
'Magento_Checkout/js/model/cart/cache': {
4848
isChanged: function () {},
49-
get: jasmine.createSpy().and.returnValues(rates, totals, rates, totals),
49+
get: jasmine.createSpy().and.returnValues(rates, rates, totals),
5050
set: jasmine.createSpy()
5151
},
5252
'Magento_Customer/js/customer-data': {
@@ -104,7 +104,7 @@ define([
104104
expect(mocks['Magento_Checkout/js/model/shipping-service'].setShippingRates).toHaveBeenCalledWith(rates);
105105
expect(mocks['Magento_Checkout/js/model/quote'].setTotals).toHaveBeenCalledWith(totals);
106106
expect(mocks['Magento_Checkout/js/model/cart/totals-processor/default'].estimateTotals)
107-
.toHaveBeenCalled();
107+
.not.toHaveBeenCalled();
108108
expect(mocks['Magento_Checkout/js/model/shipping-rate-processor/new-address'].getRates)
109109
.toHaveBeenCalled();
110110
});

0 commit comments

Comments
 (0)