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