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=d5c2a58a615ccfbfd7a8484e43c9075a9f68b79d;hpb=1379dce23d47c42d169ed13a337bbee827714830;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 d5c2a58a..dea4e5ff 100644 --- a/webapp-frontend/src/app/rd.component.spec.ts +++ b/webapp-frontend/src/app/rd.component.spec.ts @@ -2,7 +2,7 @@ * ========================LICENSE_START================================= * O-RAN-SC * %% - * Copyright (C) 2019 AT&T Intellectual Property and Nokia + * Copyright (C) 2019 AT&T Intellectual Property * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -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!');