fix getCurrentUserName front test
gitea/salix/dev This commit looks good Details

This commit is contained in:
Bernat 2019-08-19 08:28:46 +02:00
parent 7eea9d1d2c
commit c58d94ccd8
1 changed files with 2 additions and 2 deletions

View File

@ -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();