@@ -19,7 +19,6 @@ import {
1919 createSuccessfulRemoteDataObject ,
2020 createSuccessfulRemoteDataObject$
2121} from '../../shared/remote-data.utils' ;
22- import { AuthService } from '../../core/auth/auth.service' ;
2322import { createPaginatedList } from '../../shared/testing/utils.test' ;
2423import { AuthorizationDataService } from '../../core/data/feature-authorization/authorization-data.service' ;
2524import { ServerResponseService } from '../../core/services/server-response.service' ;
@@ -57,7 +56,6 @@ const mockSignpostingLinks: SignpostingLink[] = [mocklink, mocklink2];
5756describe ( 'ItemPageComponent' , ( ) => {
5857 let comp : ItemPageComponent ;
5958 let fixture : ComponentFixture < ItemPageComponent > ;
60- let authService : AuthService ;
6159 let authorizationDataService : AuthorizationDataService ;
6260 let serverResponseService : jasmine . SpyObj < ServerResponseService > ;
6361 let signpostingDataService : jasmine . SpyObj < SignpostingDataService > ;
@@ -74,10 +72,6 @@ describe('ItemPageComponent', () => {
7472 } ) ;
7573
7674 beforeEach ( waitForAsync ( ( ) => {
77- authService = jasmine . createSpyObj ( 'authService' , {
78- isAuthenticated : observableOf ( true ) ,
79- setRedirectUrl : { }
80- } ) ;
8175 authorizationDataService = jasmine . createSpyObj ( 'authorizationDataService' , {
8276 isAuthorized : observableOf ( false ) ,
8377 } ) ;
@@ -107,7 +101,6 @@ describe('ItemPageComponent', () => {
107101 { provide : ItemDataService , useValue : { } } ,
108102 { provide : MetadataService , useValue : mockMetadataService } ,
109103 { provide : Router , useValue : { } } ,
110- { provide : AuthService , useValue : authService } ,
111104 { provide : AuthorizationDataService , useValue : authorizationDataService } ,
112105 { provide : ServerResponseService , useValue : serverResponseService } ,
113106 { provide : SignpostingDataService , useValue : signpostingDataService } ,
0 commit comments