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 9a249e9 commit c3e4b04Copy full SHA for c3e4b04
dev/tests/js/jasmine/tests/app/code/Magento/Checkout/frontend/js/model/cart/estimate-service.test.js
@@ -150,5 +150,10 @@ define([
150
});
151
expect(mocks['Magento_Checkout/js/model/cart/totals-processor/default'].estimateTotals).toHaveBeenCalled();
152
153
+
154
+ it('test subscribe when cart data was changed', function () {
155
+ mocks['Magento_Customer/js/customer-data'].get('cart')({ data_id: 2 });
156
+ expect(mocks['Magento_Checkout/js/model/cart/totals-processor/default'].estimateTotals).toHaveBeenCalled();
157
+ });
158
159
0 commit comments