20 lines
639 B
TypeScript
20 lines
639 B
TypeScript
import { TestBed, async } from '@angular/core/testing';
|
|
import { AppComponent } from './app.component';
|
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
import { ContactModule } from '@nested-forms/contact';
|
|
|
|
describe('AppComponent', () => {
|
|
beforeEach(async(() => {
|
|
TestBed.configureTestingModule({
|
|
imports: [ReactiveFormsModule, ContactModule.forRoot()],
|
|
declarations: [AppComponent],
|
|
}).compileComponents();
|
|
}));
|
|
|
|
it('should create the app', () => {
|
|
const fixture = TestBed.createComponent(AppComponent);
|
|
const app = fixture.debugElement.componentInstance;
|
|
expect(app).toBeTruthy();
|
|
});
|
|
});
|