fix: refs #6276 drop test
gitea/salix/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
33cca9bfe8
commit
c2fffd1eda
|
@ -59,24 +59,4 @@ describe('collection getSalesFromTicketOrCollection()', () => {
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should getSalesFromTicketOrCollection', async() => {
|
|
||||||
const tx = await models.Collection.beginTransaction({});
|
|
||||||
|
|
||||||
try {
|
|
||||||
const options = {transaction: tx};
|
|
||||||
await models.Ticket.updateAll({id: collectionOrTicketFk}, {shipped: '2001-01-02 00:00:00.000'}, options);
|
|
||||||
|
|
||||||
const ticketTrackingBefore = await models.TicketTracking.find(null, options);
|
|
||||||
await models.Collection.getSalesFromTicketOrCollection(ctx,
|
|
||||||
collectionOrTicketFk, false, 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;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue