@@ -20,7 +20,6 @@ import {
2020} from 'rxjs' ;
2121
2222import { REQUEST } from '../../../express.tokens' ;
23- import { AppState } from '../../app.reducer' ;
2423import { getMockTranslateService } from '../../shared/mocks/translate.service.mock' ;
2524import { NotificationsService } from '../../shared/notifications/notifications.service' ;
2625import { createSuccessfulRemoteDataObject$ } from '../../shared/remote-data.utils' ;
@@ -36,6 +35,7 @@ import {
3635 SpecialGroupDataMock$ ,
3736} from '../../shared/testing/special-group.mock' ;
3837import { RemoteDataBuildService } from '../cache/builders/remote-data-build.service' ;
38+ import { CoreState } from '../core-state.model' ;
3939import { RemoteData } from '../data/remote-data' ;
4040import { EPersonDataService } from '../eperson/eperson-data.service' ;
4141import { EPerson } from '../eperson/models/eperson.model' ;
@@ -282,7 +282,7 @@ describe('AuthService test', () => {
282282 } ) . compileComponents ( ) ;
283283 } ) ) ;
284284
285- beforeEach ( inject ( [ CookieService , AuthRequestService , Store , Router , RouteService ] , ( cookieService : CookieService , authReqService : AuthRequestService , store : Store < AppState > , router : Router , routeService : RouteService , notificationsService : NotificationsService , translateService : TranslateService ) => {
285+ beforeEach ( inject ( [ CookieService , AuthRequestService , Store , Router , RouteService ] , ( cookieService : CookieService , authReqService : AuthRequestService , store : Store < CoreState > , router : Router , routeService : RouteService , notificationsService : NotificationsService , translateService : TranslateService ) => {
286286 store
287287 . subscribe ( ( state ) => {
288288 ( state as any ) . core = Object . create ( { } ) ;
@@ -358,7 +358,7 @@ describe('AuthService test', () => {
358358 } ) . compileComponents ( ) ;
359359 } ) ) ;
360360
361- beforeEach ( inject ( [ ClientCookieService , AuthRequestService , Store , Router , RouteService ] , ( cookieService : ClientCookieService , authReqService : AuthRequestService , store : Store < AppState > , router : Router , routeService : RouteService , notificationsService : NotificationsService , translateService : TranslateService ) => {
361+ beforeEach ( inject ( [ ClientCookieService , AuthRequestService , Store , Router , RouteService ] , ( cookieService : ClientCookieService , authReqService : AuthRequestService , store : Store < CoreState > , router : Router , routeService : RouteService , notificationsService : NotificationsService , translateService : TranslateService ) => {
362362 const expiredToken : AuthTokenInfo = new AuthTokenInfo ( 'test_token' ) ;
363363 expiredToken . expires = Date . now ( ) - ( 1000 * 60 * 60 ) ;
364364 authenticatedState = {
@@ -587,7 +587,7 @@ describe('AuthService test', () => {
587587 } ) . compileComponents ( ) ;
588588 } ) ) ;
589589
590- beforeEach ( inject ( [ CookieService , AuthRequestService , Store , Router , RouteService ] , ( cookieService : CookieService , authReqService : AuthRequestService , store : Store < AppState > , router : Router , routeService : RouteService , notificationsService : NotificationsService , translateService : TranslateService ) => {
590+ beforeEach ( inject ( [ CookieService , AuthRequestService , Store , Router , RouteService ] , ( cookieService : CookieService , authReqService : AuthRequestService , store : Store < CoreState > , router : Router , routeService : RouteService , notificationsService : NotificationsService , translateService : TranslateService ) => {
591591 store
592592 . subscribe ( ( state ) => {
593593 ( state as any ) . core = Object . create ( { } ) ;
@@ -627,7 +627,7 @@ describe('AuthService test', () => {
627627 } ) . compileComponents ( ) ;
628628 } ) ) ;
629629
630- beforeEach ( inject ( [ CookieService , AuthRequestService , Store , Router , RouteService ] , ( cookieService : CookieService , authReqService : AuthRequestService , store : Store < AppState > , router : Router , routeService : RouteService , notificationsService : NotificationsService , translateService : TranslateService ) => {
630+ beforeEach ( inject ( [ CookieService , AuthRequestService , Store , Router , RouteService ] , ( cookieService : CookieService , authReqService : AuthRequestService , store : Store < CoreState > , router : Router , routeService : RouteService , notificationsService : NotificationsService , translateService : TranslateService ) => {
631631 store
632632 . subscribe ( ( state ) => {
633633 ( state as any ) . core = Object . create ( { } ) ;
0 commit comments