import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { TodoComponent } from './todo.component'; describe('TodoComponent', () => { let component: TodoComponent; let fixture: ComponentFixture; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [TodoComponent] }).compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(TodoComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });