We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b23c790 commit 4787cf1Copy full SHA for 4787cf1
dev/tests/js/jasmine/tests/app/code/Magento/Checkout/frontend/js/model/cart/estimate-service.test.js
@@ -143,5 +143,10 @@ define([
143
});
144
expect(mocks['Magento_Checkout/js/model/cart/totals-processor/default'].estimateTotals).toHaveBeenCalled();
145
146
+
147
+ it('test subscribe when cart data was changed', function () {
148
+ mocks['Magento_Customer/js/customer-data'].get('cart')({ data_id: 2 });
149
+ expect(mocks['Magento_Checkout/js/model/cart/totals-processor/default'].estimateTotals).toHaveBeenCalled();
150
+ });
151
152
0 commit comments