This commit is contained in:
parent
59069749a2
commit
230516b9d4
|
@ -5,13 +5,13 @@ describe('ticket makeInvoice()', () => {
|
|||
|
||||
afterAll(async done => {
|
||||
let ticket = await app.models.Ticket.findById(11);
|
||||
ticket.updateAttributes({refFk: null});
|
||||
await ticket.updateAttributes({refFk: null});
|
||||
|
||||
let ticketTracking = await app.models.TicketTracking.findOne({order: 'id DESC', limit: 1});
|
||||
ticketTracking.destroy();
|
||||
await ticketTracking.destroy();
|
||||
|
||||
let invoiceOut = await app.models.InvoiceOut.findById(invoice.invoiceFk);
|
||||
invoiceOut.destroy();
|
||||
await invoiceOut.destroy();
|
||||
|
||||
done();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue