mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 02:54:13 +00:00
small fixes for authentication
This commit is contained in:
@@ -5,7 +5,7 @@ import { By } from '@angular/platform-browser';
|
||||
import { Store, StoreModule } from '@ngrx/store';
|
||||
|
||||
import { authReducer, AuthState } from '../../core/auth/auth.reducer';
|
||||
import { EpersonMock } from '../testing/eperson-mock';
|
||||
import { EPersonMock } from '../testing/eperson-mock';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { AppState } from '../../app.reducer';
|
||||
import { AuthNavMenuComponent } from './auth-nav-menu.component';
|
||||
@@ -13,6 +13,7 @@ import { HostWindowServiceStub } from '../testing/host-window-service-stub';
|
||||
import { HostWindowService } from '../host-window.service';
|
||||
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
||||
import { AuthTokenInfo } from '../../core/auth/models/auth-token-info.model';
|
||||
import { EPerson } from '../../core/eperson/models/eperson.model';
|
||||
|
||||
describe('AuthNavMenuComponent', () => {
|
||||
|
||||
@@ -31,7 +32,7 @@ describe('AuthNavMenuComponent', () => {
|
||||
loaded: true,
|
||||
loading: false,
|
||||
authToken: new AuthTokenInfo('test_token'),
|
||||
user: EpersonMock
|
||||
user: EPersonMock
|
||||
};
|
||||
let routerState = {
|
||||
url: '/home'
|
||||
|
Reference in New Issue
Block a user