1
|
import { LayoutModule } from '@angular/cdk/layout';
|
2
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
3
|
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
4
|
import { MatButtonModule } from '@angular/material/button';
|
5
|
import { MatIconModule } from '@angular/material/icon';
|
6
|
import { MatListModule } from '@angular/material/list';
|
7
|
import { MatSidenavModule } from '@angular/material/sidenav';
|
8
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
9
|
|
10
|
import { MainNavComponent } from './main-nav.component';
|
11
|
|
12
|
describe('MainNavComponent', () => {
|
13
|
let component: MainNavComponent;
|
14
|
let fixture: ComponentFixture<MainNavComponent>;
|
15
|
|
16
|
beforeEach(async(() => {
|
17
|
TestBed.configureTestingModule({
|
18
|
declarations: [MainNavComponent],
|
19
|
imports: [
|
20
|
NoopAnimationsModule,
|
21
|
LayoutModule,
|
22
|
MatButtonModule,
|
23
|
MatIconModule,
|
24
|
MatListModule,
|
25
|
MatSidenavModule,
|
26
|
MatToolbarModule,
|
27
|
]
|
28
|
}).compileComponents();
|
29
|
}));
|
30
|
|
31
|
beforeEach(() => {
|
32
|
fixture = TestBed.createComponent(MainNavComponent);
|
33
|
component = fixture.componentInstance;
|
34
|
fixture.detectChanges();
|
35
|
});
|
36
|
|
37
|
it('should compile', () => {
|
38
|
expect(component).toBeTruthy();
|
39
|
});
|
40
|
});
|