mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 13:33:03 +00:00
Update tests
This commit is contained in:
@@ -61,7 +61,7 @@ describe('ViewModeSwitchComponent', () => {
|
|||||||
searchService.setViewMode(ViewMode.ListElement);
|
searchService.setViewMode(ViewMode.ListElement);
|
||||||
tick();
|
tick();
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
const debugElements = fixture.debugElement.queryAll(By.css('a'));
|
const debugElements = fixture.debugElement.queryAll(By.css('button'));
|
||||||
listButton = debugElements[0].nativeElement;
|
listButton = debugElements[0].nativeElement;
|
||||||
gridButton = debugElements[1].nativeElement;
|
gridButton = debugElements[1].nativeElement;
|
||||||
}));
|
}));
|
||||||
@@ -96,7 +96,7 @@ describe('ViewModeSwitchComponent', () => {
|
|||||||
searchService.setViewMode(ViewMode.ListElement);
|
searchService.setViewMode(ViewMode.ListElement);
|
||||||
tick();
|
tick();
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
const debugElements = fixture.debugElement.queryAll(By.css('a'));
|
const debugElements = fixture.debugElement.queryAll(By.css('button'));
|
||||||
listButton = debugElements[0].nativeElement;
|
listButton = debugElements[0].nativeElement;
|
||||||
detailButton = debugElements[1].nativeElement;
|
detailButton = debugElements[1].nativeElement;
|
||||||
}));
|
}));
|
||||||
|
Reference in New Issue
Block a user