mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[DURACOM-288] fix tests
This commit is contained in:
@@ -357,11 +357,8 @@ describe('ThumbnailComponent', () => {
|
|||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [
|
imports: [
|
||||||
TranslateModule.forRoot(),
|
TranslateModule.forRoot(),
|
||||||
ThumbnailComponent,
|
|
||||||
SafeUrlPipe,
|
|
||||||
MockTranslatePipe,
|
|
||||||
VarDirective,
|
|
||||||
],
|
],
|
||||||
|
declarations: [ThumbnailComponent, SafeUrlPipe, MockTranslatePipe, VarDirective],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: AuthService, useValue: authService },
|
{ provide: AuthService, useValue: authService },
|
||||||
{ provide: AuthorizationDataService, useValue: authorizationService },
|
{ provide: AuthorizationDataService, useValue: authorizationService },
|
||||||
@@ -386,7 +383,7 @@ describe('ThumbnailComponent', () => {
|
|||||||
|
|
||||||
it('should start out with isLoading$ true', () => {
|
it('should start out with isLoading$ true', () => {
|
||||||
expect(comp.isLoading).toBeTrue();
|
expect(comp.isLoading).toBeTrue();
|
||||||
expect(de.query(By.css('ds-loading'))).toBeTruthy();
|
expect(de.query(By.css('ds-themed-loading'))).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should not call setSrc', () => {
|
it('should not call setSrc', () => {
|
||||||
|
Reference in New Issue
Block a user