[DURACOM-288] fix tests

This commit is contained in:
Giuseppe Digilio
2025-02-07 09:00:10 +01:00
parent 7660dd8d95
commit 2e28a51b02

View File

@@ -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', () => {