This commit is contained in:
parent
a35208d903
commit
6d4c71d465
|
@ -125,9 +125,11 @@ describe('ticket setDeleted()', () => {
|
||||||
expect(refundTicket).toBeTruthy();
|
expect(refundTicket).toBeTruthy();
|
||||||
|
|
||||||
await models.Ticket.setDeleted(ctx, ticketId, options);
|
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();
|
await tx.rollback();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
await tx.rollback();
|
await tx.rollback();
|
||||||
|
|
Loading…
Reference in New Issue