feat: refs #7919 test
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-10-14 17:14:40 +02:00
parent a35208d903
commit 6d4c71d465
1 changed files with 4 additions and 2 deletions

View File

@ -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();