fix: refs #6276 back tests
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Jorge Penadés 2024-02-16 10:47:41 +01:00
parent 63c615655b
commit 89970e39d0
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ const LoopBackContext = require('loopback-context');
describe('Ticket addSaleByCode()', () => {
const quantity = 3;
const ticketFk = 24;
const ticketFk = 13;
const warehouseFk = 1;
beforeAll(async() => {
activeCtx = {
@ -19,7 +19,7 @@ describe('Ticket addSaleByCode()', () => {
});
it('should add a new sale', async() => {
const tx = await models.Sale.beginTransaction({});
const tx = await models.Ticket.beginTransaction({});
try {
const options = {transaction: tx};