From dad41193009093e3596b2b824bcbe7265624472c Mon Sep 17 00:00:00 2001 From: jgallego Date: Mon, 24 Jan 2022 15:35:32 +0100 Subject: [PATCH] getTotal remove () --- modules/invoiceIn/back/methods/invoice-in/getTotals.js | 2 +- modules/invoiceIn/front/descriptor/index.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/invoiceIn/back/methods/invoice-in/getTotals.js b/modules/invoiceIn/back/methods/invoice-in/getTotals.js index f77e25d18..918467010 100644 --- a/modules/invoiceIn/back/methods/invoice-in/getTotals.js +++ b/modules/invoiceIn/back/methods/invoice-in/getTotals.js @@ -38,6 +38,6 @@ module.exports = Self => { WHERE ii.id = ?`, [id, id]); - return (result); + return result; }; }; diff --git a/modules/invoiceIn/front/descriptor/index.spec.js b/modules/invoiceIn/front/descriptor/index.spec.js index 5179e451c..46815c155 100644 --- a/modules/invoiceIn/front/descriptor/index.spec.js +++ b/modules/invoiceIn/front/descriptor/index.spec.js @@ -37,7 +37,7 @@ describe('vnInvoiceInDescriptor', () => { }); describe('checkToBook()', () => { - it(`should show both warning messages`, () => { + it(`should show a warning before book`, () => { controller.$.confirmToBookAnyway = {show: () => {}}; jest.spyOn(controller.$.confirmToBookAnyway, 'show');