diff --git a/projects/dsp-ui/ng-package.json b/projects/dsp-ui/ng-package.json index d434c9e89..0058cabe9 100644 --- a/projects/dsp-ui/ng-package.json +++ b/projects/dsp-ui/ng-package.json @@ -7,7 +7,8 @@ "@knora/api": "@knora/api", "ngx-color-picker": "ngxColorPicker", "jdnconvertiblecalendar": "jdnconvertiblecalendar", - "jdnconvertiblecalendardateadapter": "jdnconvertiblecalendardateadapter" + "jdnconvertiblecalendardateadapter": "jdnconvertiblecalendardateadapter", + "ts-md5": "tsMd5" } } } diff --git a/projects/dsp-ui/src/lib/action/components/progress-indicator/progress-indicator.component.spec.ts b/projects/dsp-ui/src/lib/action/components/progress-indicator/progress-indicator.component.spec.ts index f90babd62..2c8a31f4a 100644 --- a/projects/dsp-ui/src/lib/action/components/progress-indicator/progress-indicator.component.spec.ts +++ b/projects/dsp-ui/src/lib/action/components/progress-indicator/progress-indicator.component.spec.ts @@ -1,6 +1,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { Component, OnInit, ViewChild } from '@angular/core'; +import { MatIconModule } from '@angular/material/icon'; import { By } from '@angular/platform-browser'; import { ProgressIndicatorComponent } from './progress-indicator.component'; @@ -29,9 +30,12 @@ describe('ProgressIndicatorComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ - declarations: [ - ProgressIndicatorComponent, - TestHostComponent + imports: [ + MatIconModule + ], + declarations: [ + ProgressIndicatorComponent, + TestHostComponent ] }) .compileComponents(); @@ -125,7 +129,7 @@ describe('ProgressIndicatorComponent', () => { const matIconEl = divProgressElement.query(By.css('mat-icon')); // new status: done - expect(matIconEl.attributes.class).toEqual('after-submit'); + expect(matIconEl.attributes.class).toEqual('mat-icon notranslate after-submit material-icons mat-icon-no-color'); expect(matIconEl.nativeElement.innerText).toEqual('done'); expect(matIconEl.styles.color).toEqual('red'); }); diff --git a/src/app/action-playground/action-playground.component.spec.ts b/src/app/action-playground/action-playground.component.spec.ts index fce7a3d84..f785f5d3b 100644 --- a/src/app/action-playground/action-playground.component.spec.ts +++ b/src/app/action-playground/action-playground.component.spec.ts @@ -1,5 +1,6 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { MatListModule } from '@angular/material/list'; import { DspActionModule } from '@dasch-swiss/dsp-ui'; import { ActionPlaygroundComponent } from './action-playground.component'; @@ -9,7 +10,7 @@ describe('ActionPlaygroundComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ - imports: [ DspActionModule ], + imports: [ DspActionModule, MatListModule ], declarations: [ ActionPlaygroundComponent ] }) .compileComponents();