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