1- import { async , ComponentFixture , TestBed } from " @angular/core/testing" ;
2- import { RouterTestingModule } from " @angular/router/testing" ;
3- import { BrowserAnimationsModule } from " @angular/platform-browser/animations" ;
4- import { AppComponent } from " ./app.component" ;
5- import { ToolbarModule } from " ./toolbar/toolbar.module" ;
6- import { MatSidenavModule } from " @angular/material" ;
1+ import { async , ComponentFixture , TestBed } from ' @angular/core/testing' ;
2+ import { RouterTestingModule } from ' @angular/router/testing' ;
3+ import { BrowserAnimationsModule } from ' @angular/platform-browser/animations' ;
4+ import { AppComponent } from ' ./app.component' ;
5+ import { ToolbarModule } from ' ./toolbar/toolbar.module' ;
6+ import { MatSidenavModule , MatListModule } from ' @angular/material' ;
77
8- describe ( " AppComponent" , ( ) => {
8+ describe ( ' AppComponent' , ( ) => {
99 let component : AppComponent ;
1010 let fixture : ComponentFixture < AppComponent > ;
1111
@@ -16,7 +16,8 @@ describe("AppComponent", () => {
1616 RouterTestingModule ,
1717 BrowserAnimationsModule ,
1818 ToolbarModule ,
19- MatSidenavModule
19+ MatSidenavModule ,
20+ MatListModule
2021 ] ,
2122 declarations : [ AppComponent ]
2223 } ) . compileComponents ( ) ;
@@ -29,7 +30,7 @@ describe("AppComponent", () => {
2930 fixture . detectChanges ( ) ;
3031 } ) ;
3132
32- it ( " should create" , ( ) => {
33+ it ( ' should create' , ( ) => {
3334 expect ( component ) . toBeTruthy ( ) ;
3435 } ) ;
3536} ) ;
0 commit comments