#6276 createNewWarehouse methods migrated from silex to salix #1850

Merged
jorgep merged 158 commits from 6276-createNewWarehouse into dev 2024-03-06 11:32:11 +00:00
1 changed files with 0 additions and 19 deletions
Showing only changes of commit e527780622 - Show all commits

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;
}
});
});