Skip to content

Commit

Permalink
fix(schematics): error in generated unit test (angular#11884)
Browse files Browse the repository at this point in the history
  • Loading branch information
crisbeto authored and josephperrott committed Jun 29, 2018
1 parent d3e62b4 commit 8dfce58
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import { fakeAsync, ComponentFixture, TestBed } from '@angular/core/testing';

import { MatSidenavModule } from '@angular/material/sidenav';
import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component';

describe('<%= classify(name) %>Component', () => {
Expand All @@ -9,7 +9,8 @@ describe('<%= classify(name) %>Component', () => {

beforeEach(fakeAsync(() => {
TestBed.configureTestingModule({
declarations: [ <%= classify(name) %>Component ]
imports: [MatSidenavModule],
declarations: [<%= classify(name) %>Component]
})
.compileComponents();

Expand Down

0 comments on commit 8dfce58

Please sign in to comment.