Updated unit test
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-05-14 13:56:04 +02:00
parent c0f2590b61
commit e45af1c60a
1 changed files with 2 additions and 2 deletions

View File

@ -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);
});
});