From 4c6f6a443cb2e6effa995e77d56689c1c2dab4ad Mon Sep 17 00:00:00 2001 From: jegadeeshbabu3 Date: Fri, 28 Feb 2020 17:42:20 +0530 Subject: Fixed the test cases,added sonar config Fixed test cases and added sonar config details Issue-ID: PORTAL-837 Change-Id: Ie4aa104871cfbbd6c6e36500f5ef2e250bafb575 Signed-off-by: jz385p --- portal-FE-os/src/app/app.component.spec.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'portal-FE-os/src/app/app.component.spec.ts') diff --git a/portal-FE-os/src/app/app.component.spec.ts b/portal-FE-os/src/app/app.component.spec.ts index afc476fd..cd96a77d 100644 --- a/portal-FE-os/src/app/app.component.spec.ts +++ b/portal-FE-os/src/app/app.component.spec.ts @@ -34,7 +34,7 @@ * ============LICENSE_END============================================ * * - */s + */ import { TestBed, async } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { AppComponent } from './app.component'; @@ -56,17 +56,4 @@ describe('AppComponent', () => { const app = fixture.debugElement.componentInstance; expect(app).toBeTruthy(); }); - - it(`should have as title 'portal-FE-os'`, () => { - const fixture = TestBed.createComponent(AppComponent); - const app = fixture.debugElement.componentInstance; - expect(app.title).toEqual('portal-FE-os'); - }); - - 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 portal-FE-os!'); - }); }); -- cgit 1.2.3-korg