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