From d57c71dba71ee394ad9d65194a440e361cde48cc Mon Sep 17 00:00:00 2001 From: jgallego Date: Thu, 8 Jul 2021 08:19:30 +0200 Subject: [PATCH] minor fix --- modules/invoiceIn/front/summary/index.spec.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/invoiceIn/front/summary/index.spec.js b/modules/invoiceIn/front/summary/index.spec.js index 18e946075..ba9d285e2 100644 --- a/modules/invoiceIn/front/summary/index.spec.js +++ b/modules/invoiceIn/front/summary/index.spec.js @@ -1,6 +1,6 @@ import './index.js'; -fdescribe('InvoiceIn', () => { +describe('InvoiceIn', () => { describe('Component summary', () => { let controller; let $httpBackend; @@ -31,27 +31,27 @@ fdescribe('InvoiceIn', () => { controller.summary = { totals: { - totalDueDay: 1, - totalTaxableBase: 1, - totalVat: 2 + totalDueDay: 'amount match', + totalTaxableBase: 'amount match', + totalVat: 'no care' } }; - expect(controller.amountsNotMatch).toEqual('false'); + expect(controller.amountsNotMatch).toBeFalsy(); }); it('should get true when taxamount does not match with due day amount', () => { controller.summary = { totals: { - totalDueDay: 1, - totalTaxableBase: 2, - totalVat: 3 + totalDueDay: 'amount does not match', + totalTaxableBase: 'neither match', + totalVat: 'no care' } }; console.log(controller); - expect(controller.amountsNotMatch).toEqual('true'); + expect(controller.amountsNotMatch).toBeTruthy(); }); }); });