diff options
Diffstat (limited to 'ecomp-sdk')
3 files changed, 17 insertions, 30 deletions
diff --git a/ecomp-sdk/epsdk-app-os/ngappsrc/src/app/pages/welcome-dashboard/welcome-dashboard.component.spec.ts b/ecomp-sdk/epsdk-app-os/ngappsrc/src/app/pages/welcome-dashboard/welcome-dashboard.component.spec.ts index da27f7d1..49e579c1 100644 --- a/ecomp-sdk/epsdk-app-os/ngappsrc/src/app/pages/welcome-dashboard/welcome-dashboard.component.spec.ts +++ b/ecomp-sdk/epsdk-app-os/ngappsrc/src/app/pages/welcome-dashboard/welcome-dashboard.component.spec.ts @@ -82,9 +82,9 @@ describe('WelcomeDashboardComponent', () => { expect(component).toBeTruthy(); }); - it('should test record method', () => { - component.record(event); - }); + //it('should test record method', () => { + // component.record(event); + //}); it('should test updateNote method', () => { component.updateNote(""); diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/columns/columns.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/columns/columns.component.spec.ts index 969ca626..0d922231 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/columns/columns.component.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/columns/columns.component.spec.ts @@ -1,25 +1,22 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - import { ColumnsComponent } from './columns.component'; - +import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; describe('ColumnsComponent', () => { let component: ColumnsComponent; let fixture: ComponentFixture<ColumnsComponent>; - beforeEach(async(() => { TestBed.configureTestingModule({ + schemas: [CUSTOM_ELEMENTS_SCHEMA] , declarations: [ ColumnsComponent ] }) .compileComponents(); })); - beforeEach(() => { fixture = TestBed.createComponent(ColumnsComponent); component = fixture.componentInstance; fixture.detectChanges(); }); - it('should create', () => { expect(component).toBeTruthy(); }); -}); +});
\ No newline at end of file diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/report.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/report.component.spec.ts index 0e5d416e..7851d2c7 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/report.component.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/report.component.spec.ts @@ -1,35 +1,25 @@ import { TestBed, async } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; -import { AppComponent } from './app.component'; - -describe('AppComponent', () => { +// import { AppComponent } from './app.component'; +import { ReportComponent } from './report.component'; +import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; +import { HttpClientTestingModule } from '@angular/common/http/testing'; +describe('ReportComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ + schemas: [CUSTOM_ELEMENTS_SCHEMA], imports: [ - RouterTestingModule + RouterTestingModule, + HttpClientTestingModule ], declarations: [ - AppComponent + ReportComponent ], }).compileComponents(); })); - it('should create the app', () => { - const fixture = TestBed.createComponent(AppComponent); + const fixture = TestBed.createComponent(ReportComponent); const app = fixture.debugElement.componentInstance; expect(app).toBeTruthy(); }); - - it(`should have as title 'TitleProject'`, () => { - const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; - expect(app.title).toEqual('TitleProject'); - }); - - it('should render title in a h1 tag', () => { - const fixture = TestBed.createComponent(AppComponent); - fixture.detectChanges(); - const compiled = fixture.debugElement.nativeElement; - expect(compiled.querySelector('h1').textContent).toContain('Welcome to TitleProject!'); - }); -}); +});
\ No newline at end of file |