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-05 02:38:01 +00:00
|
|
|
import { ContactModule } from '@nested-forms/contact';
|
2019-09-02 19:23:01 +00:00
|
|
|
|
|
|
|
describe('AppComponent', () => {
|
|
|
|
beforeEach(async(() => {
|
|
|
|
TestBed.configureTestingModule({
|
2019-09-05 02:38:01 +00:00
|
|
|
imports: [
|
|
|
|
RouterTestingModule,
|
|
|
|
ReactiveFormsModule,
|
|
|
|
ContactModule.forRoot()
|
|
|
|
],
|
2019-09-03 03:27:28 +00:00
|
|
|
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();
|
|
|
|
});
|
|
|
|
});
|