Skip to content
This repository was archived by the owner on Oct 1, 2018. It is now read-only.

Commit 37d30d5

Browse files
committed
fix(tests): Add MatListModule to test AppComponent
1 parent ef85f89 commit 37d30d5

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/app/app.component.spec.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
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

Comments
 (0)