Updated unit test
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
c0f2590b61
commit
e45af1c60a
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue