diff --git a/modules/order/front/prices-popover/index.spec.js b/modules/order/front/prices-popover/index.spec.js index a68a328a2..653682e52 100644 --- a/modules/order/front/prices-popover/index.spec.js +++ b/modules/order/front/prices-popover/index.spec.js @@ -23,6 +23,7 @@ describe('Order', () => { {warehouseFk: 1, grouping: 100, quantity: 100} ]; controller.item = {available: 1000}; + controller.maxQuantity = 1000; controller.order = {id: orderId}; })); @@ -41,11 +42,10 @@ describe('Order', () => { }); describe('getTotalQuantity()', () => { - it('should set the totalQuantity and maxQuantity properties', () => { + it('should set the totalQuantity property', () => { controller.getTotalQuantity(); expect(controller.totalQuantity).toEqual(100); - expect(controller.maxQuantity).toEqual(900); }); });