refs #2687 test: fix
gitea/salix/pipeline/pr-test This commit looks good Details

This commit is contained in:
Javier Segarra 2024-02-12 08:45:07 +01:00
parent 380e0ef651
commit e79bdb4456
1 changed files with 4 additions and 1 deletions

View File

@ -27,7 +27,10 @@ describe('Travel cloneWithEntries()', () => {
expect(newTravel.warehouseOutFk).toEqual(warehouseThree);
expect(newTravel.agencyModeFk).toEqual(agencyModeOne);
expect(travelEntries.length).toBeGreaterThan(0);
await models.Entry.destroyAll({
travelFk: newTravelId
}, options);
await models.Travel.destroyById(newTravelId, options);
await tx.rollback();
const travelRemoved = await models.Travel.findById(newTravelId, options);