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