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