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(); }); }); });