fix: refs #6276 back tests
gitea/salix/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
63c615655b
commit
89970e39d0
|
@ -3,7 +3,7 @@ const LoopBackContext = require('loopback-context');
|
||||||
|
|
||||||
describe('Ticket addSaleByCode()', () => {
|
describe('Ticket addSaleByCode()', () => {
|
||||||
const quantity = 3;
|
const quantity = 3;
|
||||||
const ticketFk = 24;
|
const ticketFk = 13;
|
||||||
const warehouseFk = 1;
|
const warehouseFk = 1;
|
||||||
beforeAll(async() => {
|
beforeAll(async() => {
|
||||||
activeCtx = {
|
activeCtx = {
|
||||||
|
@ -19,7 +19,7 @@ describe('Ticket addSaleByCode()', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should add a new sale', async() => {
|
it('should add a new sale', async() => {
|
||||||
const tx = await models.Sale.beginTransaction({});
|
const tx = await models.Ticket.beginTransaction({});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const options = {transaction: tx};
|
const options = {transaction: tx};
|
||||||
|
|
Loading…
Reference in New Issue