This commit is contained in:
parent
a35208d903
commit
6d4c71d465
|
@ -125,9 +125,11 @@ describe('ticket setDeleted()', () => {
|
|||
expect(refundTicket).toBeTruthy();
|
||||
|
||||
await models.Ticket.setDeleted(ctx, ticketId, options);
|
||||
const isRemoved = await models.TicketRefund.findOne({where: {refundTicketFk: ticketId}}, options);
|
||||
const removedRefundTicket = await models.TicketRefund.findOne({
|
||||
where: {refundTicketFk: ticketId}},
|
||||
options);
|
||||
|
||||
expect(isRemoved).toBeNull();
|
||||
expect(removedRefundTicket).toBeNull();
|
||||
await tx.rollback();
|
||||
} catch (e) {
|
||||
await tx.rollback();
|
||||
|
|
Loading…
Reference in New Issue