@@ -17,27 +17,32 @@ import { BrowserOnlyMockPipe } from '../testing/browser-only-mock.pipe';
1717import { SearchServiceStub } from '../testing/search-service.stub' ;
1818import { Router } from '@angular/router' ;
1919import { RouterStub } from '../testing/router.stub' ;
20+ import { SearchFilterService } from '../../core/shared/search/search-filter.service' ;
21+ import { SearchFilterServiceStub } from '../testing/search-filter-service.stub' ;
2022
2123describe ( 'SearchFormComponent' , ( ) => {
2224 let comp : SearchFormComponent ;
2325 let fixture : ComponentFixture < SearchFormComponent > ;
2426 let de : DebugElement ;
25- let el : HTMLElement ;
2627
2728 const router = new RouterStub ( ) ;
2829 const searchService = new SearchServiceStub ( ) ;
30+ let searchFilterService : SearchFilterServiceStub ;
2931 const paginationService = new PaginationServiceStub ( ) ;
3032 const searchConfigService = { paginationID : 'test-id' } ;
3133 const dspaceObjectService = {
3234 findById : ( ) => createSuccessfulRemoteDataObject$ ( undefined ) ,
3335 } ;
3436
3537 beforeEach ( waitForAsync ( ( ) => {
38+ searchFilterService = new SearchFilterServiceStub ( ) ;
39+
3640 return TestBed . configureTestingModule ( {
3741 imports : [ FormsModule , RouterTestingModule , TranslateModule . forRoot ( ) ] ,
3842 providers : [
3943 { provide : Router , useValue : router } ,
4044 { provide : SearchService , useValue : searchService } ,
45+ { provide : SearchFilterService , useValue : searchFilterService } ,
4146 { provide : PaginationService , useValue : paginationService } ,
4247 { provide : SearchConfigurationService , useValue : searchConfigService } ,
4348 { provide : DSpaceObjectDataService , useValue : dspaceObjectService } ,
@@ -53,7 +58,6 @@ describe('SearchFormComponent', () => {
5358 fixture = TestBed . createComponent ( SearchFormComponent ) ;
5459 comp = fixture . componentInstance ; // SearchFormComponent test instance
5560 de = fixture . debugElement . query ( By . css ( 'form' ) ) ;
56- el = de . nativeElement ;
5761 } ) ;
5862
5963 it ( 'should not display scopes when showScopeSelector is false' , fakeAsync ( ( ) => {
0 commit comments