Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Action Module Playground & Components Missing Imports #97

Merged
merged 4 commits into from Jun 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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