fix updatePrice
gitea/salix/dev This commit looks good Details

This commit is contained in:
Bernat 2019-06-05 15:05:07 +02:00
parent 3a338739d1
commit 082c292ed7
1 changed files with 3 additions and 3 deletions

View File

@ -8,9 +8,9 @@ describe('sale updatePrice()', () => {
let saleId = 13;
afterAll(async done => {
originalSale.save();
createdSaleComponent.destroy();
originalSalesPersonMana.save();
await originalSale.save();
await app.models.SaleComponent.updateAll({componentFk: 37, saleFk: saleId}, {value: 0});
await originalSalesPersonMana.save();
done();
});