refs #5252 fix: back test
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2023-05-25 13:28:44 +02:00
parent ce211b436d
commit 96feb24f12
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ describe('InvoiceOut refund()', () => {
const options = {transaction: tx}; const options = {transaction: tx};
try { try {
const result = await models.InvoiceOut.refund('T1111111', options); const result = await models.InvoiceOut.refund('T1111111', true, options);
expect(result).toBeDefined(); expect(result).toBeDefined();

View File

@ -22,7 +22,7 @@ describe('Sale refund()', () => {
try { try {
const options = {transaction: tx}; const options = {transaction: tx};
const refundedTicket = await models.Sale.refund(salesIds, servicesIds, options); const refundedTicket = await models.Sale.refund(salesIds, servicesIds, true, options);
expect(refundedTicket).toBeDefined(); expect(refundedTicket).toBeDefined();
@ -40,7 +40,7 @@ describe('Sale refund()', () => {
try { try {
const options = {transaction: tx}; const options = {transaction: tx};
const ticket = await models.Sale.refund(salesIds, servicesIds, options); const ticket = await models.Sale.refund(salesIds, servicesIds, true, options);
const refundedTicket = await models.Ticket.findOne({ const refundedTicket = await models.Ticket.findOne({
where: { where: {