@@ -5,7 +5,7 @@ import { RouterTestingModule } from '@angular/router/testing';
55import { Store } from '@ngrx/store' ;
66import { TranslateModule } from '@ngx-translate/core' ;
77import { cold } from 'jasmine-marbles' ;
8- import { BehaviorSubject , Observable , of as observableOf } from 'rxjs' ;
8+ import { BehaviorSubject , Observable , of , of as observableOf } from 'rxjs' ;
99import { SortDirection , SortOptions } from '../../core/cache/models/sort-options.model' ;
1010import { CommunityDataService } from '../../core/data/community-data.service' ;
1111import { HostWindowService } from '../host-window.service' ;
@@ -34,15 +34,15 @@ import { SearchFilterConfig } from './models/search-filter-config.model';
3434import { FilterType } from './models/filter-type.model' ;
3535import { getCommunityPageRoute } from '../../community-page/community-page-routing-paths' ;
3636import { getCollectionPageRoute } from '../../collection-page/collection-page-routing-paths' ;
37- import { ConfigurationDataService } from '../../core/data/configuration -data.service' ;
37+ import { AuthorizationDataService } from '../../core/data/feature-authorization/authorization -data.service' ;
3838
3939let comp : SearchComponent ;
4040let fixture : ComponentFixture < SearchComponent > ;
4141let searchServiceObject : SearchService ;
4242let searchConfigurationServiceObject : SearchConfigurationService ;
4343
44- const configurationDataService = jasmine . createSpyObj ( 'configurationDataService ' , {
45- findByPropertyName : createSuccessfulRemoteDataObject$ ( { values : [ ' true' ] } )
44+ const authorizationDataService = jasmine . createSpyObj ( 'authorizationDataService ' , {
45+ isAuthorized : of ( true )
4646} ) ;
4747
4848const store : Store < SearchComponent > = jasmine . createSpyObj ( 'store' , {
@@ -247,8 +247,8 @@ export function configureSearchComponentTestingModule(compType, additionalDeclar
247247 useValue : searchConfigurationServiceStub
248248 } ,
249249 {
250- provide : ConfigurationDataService ,
251- useValue : configurationDataService
250+ provide : AuthorizationDataService ,
251+ useValue : authorizationDataService
252252 }
253253 ] ,
254254 schemas : [ NO_ERRORS_SCHEMA ]
0 commit comments