From e45af1c60af04491f7c10fdf01ad14626c475df3 Mon Sep 17 00:00:00 2001 From: joan Date: Fri, 14 May 2021 13:56:04 +0200 Subject: [PATCH] Updated unit test --- modules/order/front/prices-popover/index.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }); });