import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { DataHandleComponent } from './data-handle.component'; describe('DataHandleComponent', () => { let component: DataHandleComponent; let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [DataHandleComponent], teardown: { destroyAfterEach: false } }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(DataHandleComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });