From eb12126603a2cba5b931cb88c1bc9c7a7cde495b Mon Sep 17 00:00:00 2001 From: joan Date: Mon, 22 Mar 2021 10:27:07 +0100 Subject: [PATCH] Rollback test changes --- modules/entry/back/methods/entry/specs/importBuys.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/entry/back/methods/entry/specs/importBuys.spec.js b/modules/entry/back/methods/entry/specs/importBuys.spec.js index b0a55e3a1..942ce0a0b 100644 --- a/modules/entry/back/methods/entry/specs/importBuys.spec.js +++ b/modules/entry/back/methods/entry/specs/importBuys.spec.js @@ -1,7 +1,7 @@ const app = require('vn-loopback/server/server'); const LoopBackContext = require('loopback-context'); -fdescribe('entry import()', () => { +describe('entry import()', () => { const buyerId = 35; const companyId = 442; const travelId = 1; @@ -64,7 +64,7 @@ fdescribe('entry import()', () => { 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({ where: {entryFk: newEntry.id} }, options);