From ca2b84f73c7fb580c80fbef6bc442887178d8fd8 Mon Sep 17 00:00:00 2001 From: Carlos Jimenez <=> Date: Mon, 12 Mar 2018 10:23:24 +0100 Subject: [PATCH] fixed descriptor test --- client/client/src/descriptor/descriptor.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/client/src/descriptor/descriptor.spec.js b/client/client/src/descriptor/descriptor.spec.js index a5139298f..19e2d2c7c 100644 --- a/client/client/src/descriptor/descriptor.spec.js +++ b/client/client/src/descriptor/descriptor.spec.js @@ -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); }); });