import { TodosComponent } from './todos.component';
import { TodosInputComponent } from './input/todos-input.component';
import { TestBed, ComponentFixture, async } from "@angular/core/testing";


describe('TodosComponent', function () {
    let component: TodosComponent;
    let fixture: ComponentFixture<TodosComponent>;

    beforeEach(async() => {
        TestBed.configureTestingModule({
            declarations: [ TodosComponent, TodosInputComponent ]
        })
        .compileComponents();
    });

    beforeEach(() => {
        fixture = TestBed.createComponent(TodosComponent);
        component = fixture.componentInstance;
    });

    it('should create component', () => expect(component).toBeDefined());
});

import { TodosComponent } from './todos.component';
import { TestBed, ComponentFixture, async } from "@angular/core/testing";


describe('TodosComponent', function () {
    let component: TodosComponent;
    let fixture: ComponentFixture<TodosComponent>;

    beforeEach(async() => {
        TestBed.configureTestingModule({
            declarations: [ TodosComponent ]
        })
        .compileComponents();
    });

    beforeEach(() => {
        fixture = TestBed.createComponent(TodosComponent);
        component = fixture.componentInstance;
    });

    it('should create component', () => expect(component).toBeDefined());
});

--- 
+++ 
@@ -1,4 +1,5 @@
 import { TodosComponent } from './todos.component';
+import { TodosInputComponent } from './input/todos-input.component';
 import { TestBed, ComponentFixture, async } from "@angular/core/testing";
 
 
@@ -8,7 +9,7 @@
 
     beforeEach(async() => {
         TestBed.configureTestingModule({
-            declarations: [ TodosComponent ]
+            declarations: [ TodosComponent, TodosInputComponent ]
         })
         .compileComponents();
     });
Add TodosInputComponent to TestBend declarations
