app.component.spec.ts 597 Bytes
Newer Older
Vitali Stupin's avatar
Vitali Stupin committed
1
import { TestBed, async } from '@angular/core/testing';
Vitali Stupin's avatar
Vitali Stupin committed
2
import {RouterTestingModule} from '@angular/router/testing';
Vitali Stupin's avatar
Vitali Stupin committed
3
4
5
6
7
8
9
10
import { AppComponent } from './app.component';

describe('AppComponent', () => {
  beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [
        AppComponent
      ],
Vitali Stupin's avatar
Vitali Stupin committed
11
12
13
      imports: [
        RouterTestingModule
      ]
Vitali Stupin's avatar
Vitali Stupin committed
14
15
16
17
18
19
20
21
22
    }).compileComponents();
  }));

  it('should create the app', () => {
    const fixture = TestBed.createComponent(AppComponent);
    const app = fixture.debugElement.componentInstance;
    expect(app).toBeTruthy();
  });
});