#7277 - RefundInvoices #2904
|
@ -2,7 +2,7 @@ const models = require('vn-loopback/server/server').models;
|
|||
const LoopBackContext = require('loopback-context');
|
||||
const UserError = require('vn-loopback/util/user-error');
|
||||
|
||||
fdescribe('InvoiceOut transfer()', () => {
|
||||
describe('InvoiceOut transfer()', () => {
|
||||
const userId = 5;
|
||||
let options;
|
||||
let tx;
|
||||
|
@ -134,9 +134,9 @@ fdescribe('InvoiceOut transfer()', () => {
|
|||
|
||||
// await tx.commit();
|
||||
const transferredTickets = await models.Ticket.find({
|
||||
where: {clientFk: newClientFk, refFk: null},
|
||||
options
|
||||
});
|
||||
where: {clientFk: newClientFk, refFk: null}
|
||||
},
|
||||
options);
|
||||
|
||||
expect(transferredTickets.length).toBeGreaterThan(originalTickets.length);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue