import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { TemplateDrivenFormsComponent } from './template-driven-forms.component'; import { FormsModule } from '@angular/forms'; describe('TemplateDrivenFormsComponent', () => { let component: TemplateDrivenFormsComponent; let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ imports: [ FormsModule, ], declarations: [ TemplateDrivenFormsComponent ] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(TemplateDrivenFormsComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });