minor fix

This commit is contained in:
Javi Gallego 2021-07-08 08:19:30 +02:00
parent 2ec2a89f88
commit d57c71dba7
1 changed files with 9 additions and 9 deletions
modules/invoiceIn/front/summary

View File

@ -1,6 +1,6 @@
import './index.js'; import './index.js';
fdescribe('InvoiceIn', () => { describe('InvoiceIn', () => {
describe('Component summary', () => { describe('Component summary', () => {
let controller; let controller;
let $httpBackend; let $httpBackend;
@ -31,27 +31,27 @@ fdescribe('InvoiceIn', () => {
controller.summary = controller.summary =
{ {
totals: { totals: {
totalDueDay: 1, totalDueDay: 'amount match',
totalTaxableBase: 1, totalTaxableBase: 'amount match',
totalVat: 2 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', () => { it('should get true when taxamount does not match with due day amount', () => {
controller.summary = controller.summary =
{ {
totals: { totals: {
totalDueDay: 1, totalDueDay: 'amount does not match',
totalTaxableBase: 2, totalTaxableBase: 'neither match',
totalVat: 3 totalVat: 'no care'
} }
}; };
console.log(controller); console.log(controller);
expect(controller.amountsNotMatch).toEqual('true'); expect(controller.amountsNotMatch).toBeTruthy();
}); });
}); });
}); });