3e707be26b3aaa6b25f5530c3991085b2c8365f4
[portal/nonrtric-controlpanel.git] / webapp-frontend / src / app / app.component.spec.ts
1 import { TestBed, async } from '@angular/core/testing';
2 import { RouterTestingModule } from '@angular/router/testing';
3 import { AppComponent } from './app.component';
4
5 describe('AppComponent', () => {
6   beforeEach(async(() => {
7     TestBed.configureTestingModule({
8       declarations: [
9         AppComponent
10       ],
11       imports: [
12         RouterTestingModule
13       ],
14       providers: []
15     }).compileComponents();
16   }));
17
18   it('should create the app', async(() => {
19     const fixture = TestBed.createComponent(AppComponent);
20     const app = fixture.debugElement.componentInstance;
21     expect(app).toBeTruthy();
22   }));
23
24   it(`should have as title 'controlpanelApp'`, async(() => {
25     const fixture = TestBed.createComponent(AppComponent);
26     const app = fixture.debugElement.componentInstance;
27     expect(app.title).toEqual('controlpanelApp');
28   }));
29 });