import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { SidebarModule } from 'primeng/sidebar'; import { ButtonModule } from 'primeng/button'; import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component'; describe('<%= classify(name) %>Component', () => { let component: <%= classify(name) %>Component; let fixture: ComponentFixture<<%= classify(name) %>Component>; beforeEach(async(() => { TestBed.configureTestingModule({ imports: [ BrowserAnimationsModule, SidebarModule, ButtonModule ], declarations: [ <%= classify(name) %>Component ] }) .compileComponents(); fixture = TestBed.createComponent(<%= classify(name) %>Component); component = fixture.componentInstance; fixture.detectChanges(); })); it('should compile', () => { expect(component).toBeTruthy(); }); });