| import { LayoutModule } from '@angular/cdk/layout'; |
| import { async, ComponentFixture, TestBed } from '@angular/core/testing'; |
| import { NoopAnimationsModule } from '@angular/platform-browser/animations'; |
| import { MatButtonModule } from '@angular/material/button'; |
| import { MatIconModule } from '@angular/material/icon'; |
| import { MatListModule } from '@angular/material/list'; |
| import { MatSidenavModule } from '@angular/material/sidenav'; |
| import { MatToolbarModule } from '@angular/material/toolbar'; |
| |
| 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({ |
| declarations: [<%= classify(name) %>Component], |
| imports: [ |
| NoopAnimationsModule, |
| LayoutModule, |
| MatButtonModule, |
| MatIconModule, |
| MatListModule, |
| MatSidenavModule, |
| MatToolbarModule, |
| ] |
| }).compileComponents(); |
| })); |
| |
| beforeEach(() => { |
| fixture = TestBed.createComponent(<%= classify(name) %>Component); |
| component = fixture.componentInstance; |
| fixture.detectChanges(); |
| }); |
| |
| it('should compile', () => { |
| expect(component).toBeTruthy(); |
| }); |
| }); |