Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 2811-entry_latest_buys
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
commit
7e903f91a5
|
@ -1,7 +1,7 @@
|
||||||
const app = require('vn-loopback/server/server');
|
const app = require('vn-loopback/server/server');
|
||||||
const LoopBackContext = require('loopback-context');
|
const LoopBackContext = require('loopback-context');
|
||||||
|
|
||||||
fdescribe('entry import()', () => {
|
describe('entry import()', () => {
|
||||||
const buyerId = 35;
|
const buyerId = 35;
|
||||||
const companyId = 442;
|
const companyId = 442;
|
||||||
const travelId = 1;
|
const travelId = 1;
|
||||||
|
@ -64,7 +64,7 @@ fdescribe('entry import()', () => {
|
||||||
|
|
||||||
await app.models.Entry.importBuys(ctx, newEntry.id, options);
|
await app.models.Entry.importBuys(ctx, newEntry.id, options);
|
||||||
|
|
||||||
const updatedEntry = await app.models.Entry.findById(null, null, options);
|
const updatedEntry = await app.models.Entry.findById(newEntry.id, null, options);
|
||||||
const entryBuys = await app.models.Buy.find({
|
const entryBuys = await app.models.Buy.find({
|
||||||
where: {entryFk: newEntry.id}
|
where: {entryFk: newEntry.id}
|
||||||
}, options);
|
}, options);
|
||||||
|
|
Loading…
Reference in New Issue