Skip to content

Commit

Permalink
FIX: Action Module Playground & Components Missing Imports (#97)
Browse files Browse the repository at this point in the history
* fix (tests): fixed missing imports

* fix (ng-package): added ts-md5 to fix warning

* refactor (ng-package): small rename
  • Loading branch information
mdelez committed Jun 4, 2020
1 parent a2fcf1a commit 03cc104
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion projects/dsp-ui/ng-package.json
Expand Up @@ -7,7 +7,8 @@
"@knora/api": "@knora/api",
"ngx-color-picker": "ngxColorPicker",
"jdnconvertiblecalendar": "jdnconvertiblecalendar",
"jdnconvertiblecalendardateadapter": "jdnconvertiblecalendardateadapter"
"jdnconvertiblecalendardateadapter": "jdnconvertiblecalendardateadapter",
"ts-md5": "tsMd5"
}
}
}
@@ -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';

Expand Down Expand Up @@ -29,9 +30,12 @@ describe('ProgressIndicatorComponent', () => {

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
ProgressIndicatorComponent,
TestHostComponent
imports: [
MatIconModule
],
declarations: [
ProgressIndicatorComponent,
TestHostComponent
]
})
.compileComponents();
Expand Down Expand Up @@ -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');
});
Expand Down
@@ -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';

Expand All @@ -9,7 +10,7 @@ describe('ActionPlaygroundComponent', () => {

beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [ DspActionModule ],
imports: [ DspActionModule, MatListModule ],
declarations: [ ActionPlaygroundComponent ]
})
.compileComponents();
Expand Down

0 comments on commit 03cc104

Please sign in to comment.