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

27 lines
699 B
TypeScript
Raw Normal View History

2019-09-03 03:27:28 +00:00
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2019-09-05 03:02:49 +00:00
import { ReactiveFormsModule } from '@angular/forms';
2019-09-03 03:27:28 +00:00
import { NameComponent } from './name.component';
describe('NameComponent', () => {
let component: NameComponent;
let fixture: ComponentFixture<NameComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
2019-09-05 03:02:49 +00:00
imports: [ReactiveFormsModule],
2019-09-03 03:27:28 +00:00
declarations: [NameComponent]
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(NameComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});