fixed descriptor test

This commit is contained in:
Carlos Jimenez 2018-03-12 10:23:24 +01:00
parent 7b5bf2235f
commit ca2b84f73c
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ describe('Descriptor', () => {
}));
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 = {};
let response = {debt: 100};
$httpBackend.whenGET(`/client/api/Clients/101/getDebt`).respond(response);
@ -25,7 +25,7 @@ describe('Descriptor', () => {
controller._getClientDebt(101);
$httpBackend.flush();
expect(controller.client.debt).toEqual(100);
expect(controller.clientDebt).toEqual(100);
});
});