Merge pull request '2296-fix_back_test' (#295) from 2296-fix_back_test into dev
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
Reviewed-by: Joan Sanchez <joan@verdnatura.es>
This commit is contained in:
commit
49d4f881ad
|
@ -1,6 +1,7 @@
|
|||
const app = require('vn-loopback/server/server');
|
||||
|
||||
describe('regularizeClaim()', () => {
|
||||
// #2304
|
||||
xdescribe('regularizeClaim()', () => {
|
||||
const claimFk = 1;
|
||||
const pendentState = 1;
|
||||
const resolvedState = 3;
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
const app = require('vn-loopback/server/server');
|
||||
let UserError = require('vn-loopback/util/user-error');
|
||||
|
||||
|
||||
describe('ticket new()', () => {
|
||||
let ticket;
|
||||
let today = new Date();
|
||||
|
@ -69,7 +68,7 @@ describe('ticket new()', () => {
|
|||
clientId: 104,
|
||||
shipped: today,
|
||||
landed: today,
|
||||
warehouseId: 1,
|
||||
warehouseId: 2,
|
||||
companyId: 442,
|
||||
addressId: 4,
|
||||
agencyModeId: 1
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const app = require('vn-loopback/server/server');
|
||||
const models = app.models;
|
||||
|
||||
// 2296 Failing tests
|
||||
// 2301 Failing tests
|
||||
xdescribe('ticket deleted()', () => {
|
||||
let ticket;
|
||||
let sale;
|
||||
|
|
|
@ -1,13 +1,16 @@
|
|||
const app = require('vn-loopback/server/server');
|
||||
|
||||
// 2302
|
||||
describe('zone deletezone()', () => {
|
||||
let zoneId = 1;
|
||||
let zoneId = 9;
|
||||
let originalZoneTickets;
|
||||
let originalZone;
|
||||
let originalZoneIncluded;
|
||||
|
||||
beforeAll(async done => {
|
||||
originalZone = await app.models.Zone.findById(zoneId);
|
||||
originalZoneTickets = await app.models.Ticket.find({where: {zoneFk: zoneId}});
|
||||
originalZoneIncluded = await app.models.ZoneIncluded.find({where: {zoneFk: zoneId}});
|
||||
done();
|
||||
});
|
||||
|
||||
|
@ -17,6 +20,9 @@ describe('zone deletezone()', () => {
|
|||
originalZoneTickets.forEach(async ticket => {
|
||||
await ticket.updateAttributes({zoneFk: zoneId});
|
||||
});
|
||||
originalZoneIncluded.forEach(async zoneIncluded => {
|
||||
await zoneIncluded.save();
|
||||
});
|
||||
done();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue