diff --git a/services/order/common/methods/order-row/specs/addToOrder.spec.js b/services/order/common/methods/order-row/specs/addToOrder.spec.js index 29c416fb3..c9c1a53cd 100644 --- a/services/order/common/methods/order-row/specs/addToOrder.spec.js +++ b/services/order/common/methods/order-row/specs/addToOrder.spec.js @@ -20,6 +20,6 @@ describe('order addToOrder()', () => { let modifiedRows = await app.models.OrderRow.find({where: {orderFk: 16}}); expect(modifiedRows.length).toBe(5); - app.models.OrderRow.removes({rows: [modifiedRows[modifiedRows.length - 1].id]}); + await app.models.OrderRow.removes({rows: [modifiedRows[modifiedRows.length - 1].id]}); }); });