diff options
author | Indrijeet kumar <indriku1@in.ibm.com> | 2020-03-20 16:34:04 +0530 |
---|---|---|
committer | Indrijeet kumar <indriku1@in.ibm.com> | 2020-03-20 16:34:13 +0530 |
commit | ecaf232908ff0526ddf76d0fc5448f7b5ff759ee (patch) | |
tree | fecf65ab87609818b038b83cfdf562a6dc93b8e2 | |
parent | 88267ff629c01ca1b5a0db60cef4f6448b5a2358 (diff) |
modification in report component
modification in report component
Issue-ID: PORTAL-813
Change-Id: I79a5e5fa8bf9c5726d834084a6277234cce27af4
Signed-off-by: Indrijeet Kumar <indriku1@in.ibm.com>
-rw-r--r-- | ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/report.component.spec.ts | 32 |
1 files changed, 11 insertions, 21 deletions
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 |