summaryrefslogtreecommitdiffstats
path: root/portal-FE-common/src/app/pages/widget-onboarding
diff options
context:
space:
mode:
Diffstat (limited to 'portal-FE-common/src/app/pages/widget-onboarding')
-rw-r--r--portal-FE-common/src/app/pages/widget-onboarding/widget-details-dialog/widget-details-dialog.component.spec.ts12
-rw-r--r--portal-FE-common/src/app/pages/widget-onboarding/widget-onboarding.component.spec.ts7
2 files changed, 17 insertions, 2 deletions
diff --git a/portal-FE-common/src/app/pages/widget-onboarding/widget-details-dialog/widget-details-dialog.component.spec.ts b/portal-FE-common/src/app/pages/widget-onboarding/widget-details-dialog/widget-details-dialog.component.spec.ts
index 411da1e9..b2f3b4b0 100644
--- a/portal-FE-common/src/app/pages/widget-onboarding/widget-details-dialog/widget-details-dialog.component.spec.ts
+++ b/portal-FE-common/src/app/pages/widget-onboarding/widget-details-dialog/widget-details-dialog.component.spec.ts
@@ -39,14 +39,23 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { WidgetDetailsDialogComponent } from './widget-details-dialog.component';
+import { HttpClientTestingModule } from '@angular/common/http/testing';
+import { FormsModule, ReactiveFormsModule } from '@angular/forms';
+import { NgMaterialModule } from 'src/app/ng-material-module';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
+import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
+import { IWidget } from 'src/app/shared/model/widget-onboarding/widget';
describe('WidgetDetailsDialogComponent', () => {
let component: WidgetDetailsDialogComponent;
let fixture: ComponentFixture<WidgetDetailsDialogComponent>;
+ const widget: IWidget = {"allUser":true,"name":"WidgetTestName"};
beforeEach(async(() => {
TestBed.configureTestingModule({
- declarations: [ WidgetDetailsDialogComponent ]
+ declarations: [ WidgetDetailsDialogComponent ],
+ imports:[HttpClientTestingModule,FormsModule,ReactiveFormsModule,NgMaterialModule,BrowserAnimationsModule],
+ providers:[NgbActiveModal]
})
.compileComponents();
}));
@@ -54,6 +63,7 @@ describe('WidgetDetailsDialogComponent', () => {
beforeEach(() => {
fixture = TestBed.createComponent(WidgetDetailsDialogComponent);
component = fixture.componentInstance;
+ component.widget=widget;
fixture.detectChanges();
});
diff --git a/portal-FE-common/src/app/pages/widget-onboarding/widget-onboarding.component.spec.ts b/portal-FE-common/src/app/pages/widget-onboarding/widget-onboarding.component.spec.ts
index 2fd7ef27..e0df154d 100644
--- a/portal-FE-common/src/app/pages/widget-onboarding/widget-onboarding.component.spec.ts
+++ b/portal-FE-common/src/app/pages/widget-onboarding/widget-onboarding.component.spec.ts
@@ -38,6 +38,10 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { WidgetOnboardingComponent } from './widget-onboarding.component';
+import { HttpClientTestingModule } from '@angular/common/http/testing';
+import { FormsModule } from '@angular/forms';
+import { NgMaterialModule } from 'src/app/ng-material-module';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
describe('WidgetOnboardingComponent', () => {
let component: WidgetOnboardingComponent;
@@ -45,7 +49,8 @@ describe('WidgetOnboardingComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
- declarations: [ WidgetOnboardingComponent ]
+ declarations: [ WidgetOnboardingComponent ],
+ imports:[HttpClientTestingModule,FormsModule,NgMaterialModule,BrowserAnimationsModule],
})
.compileComponents();
}));