diff --git a/front/salix/components/main-menu/main-menu.spec.js b/front/salix/components/main-menu/main-menu.spec.js index 8d3e44abf..725c6c84e 100644 --- a/front/salix/components/main-menu/main-menu.spec.js +++ b/front/salix/components/main-menu/main-menu.spec.js @@ -14,8 +14,8 @@ describe('Component vnMainMenu', () => { describe('getCurrentUserName()', () => { it(`should set the user name property in the controller`, () => { - $httpBackend.when('GET', `/api/Accounts/getCurrentUserName`).respond('Batman'); - $httpBackend.expect('GET', `/api/Accounts/getCurrentUserName`); + $httpBackend.when('GET', `/api/Accounts/getCurrentUserData`).respond({accountName: 'Batman'}); + $httpBackend.expect('GET', `/api/Accounts/getCurrentUserData`); controller.getCurrentUserName(); $httpBackend.flush();