From 296a743d8a70e4a454f307050c48de2667c8592f Mon Sep 17 00:00:00 2001 From: Pau Navarro Date: Tue, 25 Oct 2022 12:25:56 +0200 Subject: [PATCH] Fix test, remove console log --- modules/supplier/back/methods/supplier/newSupplier.js | 1 - .../supplier/back/methods/supplier/specs/newSupplier.spec.js | 2 -- 2 files changed, 3 deletions(-) diff --git a/modules/supplier/back/methods/supplier/newSupplier.js b/modules/supplier/back/methods/supplier/newSupplier.js index a1894af70..f4059a259 100644 --- a/modules/supplier/back/methods/supplier/newSupplier.js +++ b/modules/supplier/back/methods/supplier/newSupplier.js @@ -33,7 +33,6 @@ module.exports = Self => { try { const supplier = await models.Supplier.create(params, myOptions); - console.log('supplier: ', supplier); if (tx) await tx.commit(); diff --git a/modules/supplier/back/methods/supplier/specs/newSupplier.spec.js b/modules/supplier/back/methods/supplier/specs/newSupplier.spec.js index 42012df01..8f22a4f20 100644 --- a/modules/supplier/back/methods/supplier/specs/newSupplier.spec.js +++ b/modules/supplier/back/methods/supplier/specs/newSupplier.spec.js @@ -17,8 +17,6 @@ describe('Supplier newSupplier()', () => { let result = await app.models.Supplier.newSupplier(JSON.stringify(newSupp)); - result = result.supplier; - expect(result.name).toEqual('TestSupplier-1'); expect(result.id).toEqual(443);