From 458d2670b3aa5db0c6987f3ea141f8ea99187e35 Mon Sep 17 00:00:00 2001 From: joan Date: Wed, 29 Sep 2021 12:17:21 +0200 Subject: [PATCH] Updated unit test --- modules/client/front/web-access/index.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/client/front/web-access/index.spec.js b/modules/client/front/web-access/index.spec.js index 73c4f1043..00fa12781 100644 --- a/modules/client/front/web-access/index.spec.js +++ b/modules/client/front/web-access/index.spec.js @@ -33,7 +33,7 @@ describe('Component VnClientWebAccess', () => { it('should return true if the password can be modified', () => { controller.client = {id: '1234'}; - $httpBackend.expectGET(`Clients/${controller.client.id}/hasCustomerRole`).respond({isCustomer: true}); + $httpBackend.expectGET(`Clients/${controller.client.id}/hasCustomerRole`).respond(true); controller.isCustomer(); $httpBackend.flush(); @@ -43,7 +43,7 @@ describe('Component VnClientWebAccess', () => { it(`should return a false if the password can't be modified`, () => { controller.client = {id: '1234'}; - $httpBackend.expectGET(`Clients/${controller.client.id}/hasCustomerRole`).respond({isCustomer: false}); + $httpBackend.expectGET(`Clients/${controller.client.id}/hasCustomerRole`).respond(false); controller.isCustomer(); $httpBackend.flush();