nested-forms/apps/global-form/src/app/app.component.spec.ts

22 lines
713 B
TypeScript
Raw Normal View History

2019-09-03 03:27:28 +00:00
import { ReactiveFormsModule } from '@angular/forms';
import { RouterTestingModule } from '@angular/router/testing';
2019-09-02 19:23:01 +00:00
import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';
2019-09-03 03:27:28 +00:00
import { NameComponent } from './name/name.component';
2019-09-02 19:23:01 +00:00
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
2019-09-03 03:27:28 +00:00
imports: [RouterTestingModule, ReactiveFormsModule],
declarations: [AppComponent, NameComponent]
2019-09-02 19:23:01 +00:00
}).compileComponents();
}));
it('should create the app', () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app).toBeTruthy();
});
});