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