minor fix
This commit is contained in:
parent
2ec2a89f88
commit
d57c71dba7
|
@ -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();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue