fixed descriptor test
This commit is contained in:
parent
7b5bf2235f
commit
ca2b84f73c
|
@ -17,7 +17,7 @@ describe('Descriptor', () => {
|
||||||
}));
|
}));
|
||||||
|
|
||||||
describe('_getClientDebt()', () => {
|
describe('_getClientDebt()', () => {
|
||||||
it(`should call _getClientDebt() and define the client.debt value on the controller`, () => {
|
it(`should call _getClientDebt() and define the clientDebt value on the controller`, () => {
|
||||||
controller.client = {};
|
controller.client = {};
|
||||||
let response = {debt: 100};
|
let response = {debt: 100};
|
||||||
$httpBackend.whenGET(`/client/api/Clients/101/getDebt`).respond(response);
|
$httpBackend.whenGET(`/client/api/Clients/101/getDebt`).respond(response);
|
||||||
|
@ -25,7 +25,7 @@ describe('Descriptor', () => {
|
||||||
controller._getClientDebt(101);
|
controller._getClientDebt(101);
|
||||||
$httpBackend.flush();
|
$httpBackend.flush();
|
||||||
|
|
||||||
expect(controller.client.debt).toEqual(100);
|
expect(controller.clientDebt).toEqual(100);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue