#1438 fix test back makeInvoice
gitea/salix/dev This commit looks good Details

This commit is contained in:
Bernat 2019-05-27 10:01:35 +02:00
parent 59069749a2
commit 230516b9d4
1 changed files with 3 additions and 3 deletions

View File

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