2020-01-14 13:41:28 +01:00
|
|
|
import { TestBed, async } from '@angular/core/testing';
|
|
|
|
import { RouterTestingModule } from '@angular/router/testing';
|
|
|
|
import { AppComponent } from './app.component';
|
2020-01-14 16:18:26 +01:00
|
|
|
import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
|
2020-01-14 13:41:28 +01:00
|
|
|
|
|
|
|
describe('AppComponent', () => {
|
|
|
|
beforeEach(async(() => {
|
|
|
|
TestBed.configureTestingModule({
|
|
|
|
imports: [
|
|
|
|
RouterTestingModule
|
|
|
|
],
|
|
|
|
declarations: [
|
|
|
|
AppComponent
|
|
|
|
],
|
2020-01-14 16:18:26 +01:00
|
|
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
2020-01-14 13:41:28 +01:00
|
|
|
}).compileComponents();
|
|
|
|
}));
|
|
|
|
|
|
|
|
it('should create the app', () => {
|
|
|
|
const fixture = TestBed.createComponent(AppComponent);
|
|
|
|
const app = fixture.debugElement.componentInstance;
|
|
|
|
expect(app).toBeTruthy();
|
|
|
|
});
|
|
|
|
|
2020-01-14 16:18:26 +01:00
|
|
|
it(`should have the correct title'`, () => {
|
2020-01-14 13:41:28 +01:00
|
|
|
const fixture = TestBed.createComponent(AppComponent);
|
|
|
|
const app = fixture.debugElement.componentInstance;
|
|
|
|
expect(app.title).toEqual('UI');
|
|
|
|
});
|
|
|
|
});
|