From 5ac7e226d8b25125ad3559cf2a759e5cd2f183d6 Mon Sep 17 00:00:00 2001 From: Tobias Schweizer Date: Fri, 4 Dec 2020 11:39:16 +0100 Subject: [PATCH] tests (viewer): fix warnings (#240) --- .../representation/upload-file/upload-file.component.spec.ts | 1 - .../lib/viewer/views/list-view/list-view.component.spec.ts | 2 ++ .../views/resource-view/resource-view.component.spec.ts | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/projects/dsp-ui/src/lib/viewer/representation/upload-file/upload-file.component.spec.ts b/projects/dsp-ui/src/lib/viewer/representation/upload-file/upload-file.component.spec.ts index c010c907f..f0fd0ef5b 100644 --- a/projects/dsp-ui/src/lib/viewer/representation/upload-file/upload-file.component.spec.ts +++ b/projects/dsp-ui/src/lib/viewer/representation/upload-file/upload-file.component.spec.ts @@ -79,7 +79,6 @@ describe('UploadFileComponent', () => { const fileTypes = ['image/jpeg', 'image/jp2', 'image/tiff', 'image/tiff-fx', 'image/png']; component.representation = Constants.StillImageFileValue; for (const type of fileTypes) { - console.log(type); expect(component['_isFileTypeSupported'](type)).toBeTruthy(); } }); diff --git a/projects/dsp-ui/src/lib/viewer/views/list-view/list-view.component.spec.ts b/projects/dsp-ui/src/lib/viewer/views/list-view/list-view.component.spec.ts index bdede0a97..1cadd2a03 100644 --- a/projects/dsp-ui/src/lib/viewer/views/list-view/list-view.component.spec.ts +++ b/projects/dsp-ui/src/lib/viewer/views/list-view/list-view.component.spec.ts @@ -21,6 +21,8 @@ class TestResourceListComponent { @Input() resources: ReadResourceSequence; + @Input() selectedResourceIdx: number; + } /** diff --git a/projects/dsp-ui/src/lib/viewer/views/resource-view/resource-view.component.spec.ts b/projects/dsp-ui/src/lib/viewer/views/resource-view/resource-view.component.spec.ts index ed56f68b6..8304d2b01 100644 --- a/projects/dsp-ui/src/lib/viewer/views/resource-view/resource-view.component.spec.ts +++ b/projects/dsp-ui/src/lib/viewer/views/resource-view/resource-view.component.spec.ts @@ -21,6 +21,7 @@ import { map } from 'rxjs/internal/operators/map'; import { DspApiConnectionToken } from '../../../core/core.module'; import { EmitEvent, Events, ValueOperationEventService } from '../../services/value-operation-event.service'; import { PropertyInfoValues, ResourceViewComponent } from './resource-view.component'; +import { MatDividerModule } from '@angular/material/divider'; /** * Test host component to simulate child component, here property-view. @@ -120,7 +121,8 @@ describe('ResourceViewComponent', () => { ], imports: [ MatIconModule, - MatSnackBarModule + MatSnackBarModule, + MatDividerModule ], providers: [ {