Skip to content

Commit 1705f1d

Browse files
committed
MC-24725: Cyclic ajax requests to cart section in shopping cart
1 parent f081032 commit 1705f1d

File tree

1 file changed

+3
-6
lines changed
  • dev/tests/js/jasmine/tests/app/code/Magento/Checkout/frontend/js/model

1 file changed

+3
-6
lines changed

dev/tests/js/jasmine/tests/app/code/Magento/Checkout/frontend/js/model/totals.test.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ define([
4646
reload: jasmine.createSpy(),
4747
getInitCustomerData: function () {}
4848
}
49-
},
50-
totals;
49+
};
5150

5251
afterEach(function () {
5352
try {
@@ -59,8 +58,7 @@ define([
5958
describe('Test that customer data is reloaded when quote subtotal and cart subtotal are different', function () {
6059
beforeEach(function (done) {
6160
injector.mock(mocks);
62-
injector.require(['Magento_Checkout/js/model/totals'], function (Totals) {
63-
totals = Totals;
61+
injector.require(['Magento_Checkout/js/model/totals'], function () {
6462
done();
6563
});
6664
});
@@ -74,8 +72,7 @@ define([
7472
describe('Test that customer data is not reloaded when cart subtotal is NaN', function () {
7573
beforeEach(function (done) {
7674
injector.mock(mocksTwo);
77-
injector.require(['Magento_Checkout/js/model/totals'], function (Totals) {
78-
totals = Totals;
75+
injector.require(['Magento_Checkout/js/model/totals'], function () {
7976
done();
8077
});
8178
});

0 commit comments

Comments
 (0)