mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(schematics): error in generated unit test (#11884)
This commit is contained in:
committed by
Joey Perrott
parent
d3e62b4339
commit
8dfce58e2b
+3
-2
@@ -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', () => {
|
||||
@@ -9,7 +9,8 @@ describe('<%= classify(name) %>Component', () => {
|
||||
|
||||
beforeEach(fakeAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ <%= classify(name) %>Component ]
|
||||
imports: [MatSidenavModule],
|
||||
declarations: [<%= classify(name) %>Component]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user