fix: refs #6276 drop suitcase sectorCollection_getSales
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-01-24 11:24:49 +01:00
parent e849f0b6e2
commit e527780622
1 changed files with 0 additions and 19 deletions

View File

@ -56,23 +56,4 @@ describe('collection getSalesFromTicketOrCollection()', () => {
throw e;
}
});
it('should add a ticketTracking', async() => {
const collectionOrTicketFk = 23;
const tx = await models.Collection.beginTransaction({});
const options = {transaction: tx};
try {
const ticketTrackingBefore = await models.TicketTracking.find(null, options);
await models.Collection.getSalesFromTicketOrCollection(ctx,
collectionOrTicketFk, print, source, options);
const ticketTrackingAfter = await models.TicketTracking.find(null, options);
expect(ticketTrackingAfter.length).toEqual(ticketTrackingBefore.length + 1);
await tx.rollback();
} catch (e) {
await tx.rollback();
throw e;
}
});
});