X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fsrc%2Fapp%2Frd.component.spec.ts;h=dea4e5ff1f03596cc5b60f867c87b78bfdb17123;hb=refs%2Fchanges%2F72%2F2272%2F8;hp=852386c38e179c17ae22d8876cd49adcf0b8d1c0;hpb=44203c43bb16a87eb54cc97431a026e111842c97;p=portal%2Fric-dashboard.git diff --git a/webapp-frontend/src/app/rd.component.spec.ts b/webapp-frontend/src/app/rd.component.spec.ts index 852386c3..dea4e5ff 100644 --- a/webapp-frontend/src/app/rd.component.spec.ts +++ b/webapp-frontend/src/app/rd.component.spec.ts @@ -19,34 +19,34 @@ */ import { TestBed, async } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; -import { AppComponent } from './app.component'; +import { RdComponent } from './rd.component'; -describe('AppComponent', () => { +describe('RdComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ imports: [ RouterTestingModule ], declarations: [ - AppComponent + RdComponent ], }).compileComponents(); })); it('should create the app', () => { - const fixture = TestBed.createComponent(AppComponent); + const fixture = TestBed.createComponent(RdComponent); const app = fixture.debugElement.componentInstance; expect(app).toBeTruthy(); }); it(`should have as title 'dashApp'`, () => { - const fixture = TestBed.createComponent(AppComponent); + const fixture = TestBed.createComponent(RdComponent); const app = fixture.debugElement.componentInstance; expect(app.title).toEqual('dashApp'); }); it('should render title in a h1 tag', () => { - const fixture = TestBed.createComponent(AppComponent); + const fixture = TestBed.createComponent(RdComponent); fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; expect(compiled.querySelector('h1').textContent).toContain('Welcome to dashApp!');