File tree Expand file tree Collapse file tree 5 files changed +103
-36
lines changed
address-form/files/__path__/__name@dasherize@if-flat__
dashboard/files/__path__/__name@dasherize@if-flat__
nav/files/__path__/__name@dasherize@if-flat__
table/files/__path__/__name@dasherize@if-flat__
tree/files/__path__/__name@dasherize@if-flat__ Expand file tree Collapse file tree 5 files changed +103
-36
lines changed Original file line number Diff line number Diff line change 1
-
2
- import { fakeAsync , ComponentFixture , TestBed } from '@angular/core/testing' ;
1
+ import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
2
+ import { ReactiveFormsModule } from '@angular/forms' ;
3
+ import { NoopAnimationsModule } from '@angular/platform-browser/animations' ;
4
+ import {
5
+ MatButtonModule ,
6
+ MatCardModule ,
7
+ MatInputModule ,
8
+ MatRadioModule ,
9
+ MatSelectModule ,
10
+ } from '@angular/material' ;
3
11
4
12
import { < %= classify ( name ) % > Component } from './<%= dasherize(name) %>.component' ;
5
13
6
14
describe ( '<%= classify(name) %>Component' , ( ) => {
7
15
let component : < %= classify ( name ) % > Component ;
8
16
let fixture : ComponentFixture < < %= classify ( name ) % > Component > ;
9
17
10
- beforeEach ( fakeAsync ( ( ) => {
18
+ beforeEach ( async ( ( ) => {
11
19
TestBed . configureTestingModule ( {
12
- declarations : [ < %= classify ( name ) % > Component ]
13
- } )
14
- . compileComponents ( ) ;
20
+ declarations : [ < %= classify ( name ) % > Component ] ,
21
+ imports : [
22
+ NoopAnimationsModule ,
23
+ ReactiveFormsModule ,
24
+ MatButtonModule ,
25
+ MatCardModule ,
26
+ MatInputModule ,
27
+ MatRadioModule ,
28
+ MatSelectModule ,
29
+ ]
30
+ } ) . compileComponents ( ) ;
31
+ } ) ) ;
15
32
33
+ beforeEach ( ( ) => {
16
34
fixture = TestBed . createComponent ( < %= classify ( name ) % > Component ) ;
17
35
component = fixture . componentInstance ;
18
36
fixture . detectChanges ( ) ;
19
- } ) ) ;
37
+ } ) ;
20
38
21
39
it ( 'should compile' , ( ) => {
22
40
expect ( component ) . toBeTruthy ( ) ;
Original file line number Diff line number Diff line change 1
-
2
- import { fakeAsync , ComponentFixture , TestBed } from '@angular/core/testing' ;
1
+ import { LayoutModule } from '@angular/cdk/layout' ;
2
+ import { NoopAnimationsModule } from '@angular/platform-browser/animations' ;
3
+ import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
4
+ import {
5
+ MatButtonModule ,
6
+ MatCardModule ,
7
+ MatGridListModule ,
8
+ MatIconModule ,
9
+ MatMenuModule ,
10
+ } from '@angular/material' ;
3
11
4
12
import { < %= classify ( name ) % > Component } from './<%= dasherize(name) %>.component' ;
5
13
6
14
describe ( '<%= classify(name) %>Component' , ( ) => {
7
15
let component : < %= classify ( name ) % > Component ;
8
16
let fixture : ComponentFixture < < %= classify ( name ) % > Component > ;
9
17
10
- beforeEach ( fakeAsync ( ( ) => {
18
+ beforeEach ( async ( ( ) => {
11
19
TestBed . configureTestingModule ( {
12
- declarations : [ < %= classify ( name ) % > Component ]
13
- } )
14
- . compileComponents ( ) ;
20
+ declarations : [ < %= classify ( name ) % > Component ] ,
21
+ imports : [
22
+ NoopAnimationsModule ,
23
+ LayoutModule ,
24
+ MatButtonModule ,
25
+ MatCardModule ,
26
+ MatGridListModule ,
27
+ MatIconModule ,
28
+ MatMenuModule ,
29
+ ]
30
+ } ) . compileComponents ( ) ;
31
+ } ) ) ;
15
32
33
+ beforeEach ( ( ) => {
16
34
fixture = TestBed . createComponent ( < %= classify ( name ) % > Component ) ;
17
35
component = fixture . componentInstance ;
18
36
fixture . detectChanges ( ) ;
19
- } ) ) ;
37
+ } ) ;
20
38
21
39
it ( 'should compile' , ( ) => {
22
40
expect ( component ) . toBeTruthy ( ) ;
Original file line number Diff line number Diff line change
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 {
5
+ MatButtonModule ,
6
+ MatIconModule ,
7
+ MatListModule ,
8
+ MatSidenavModule ,
9
+ MatToolbarModule ,
10
+ } from '@angular/material' ;
1
11
2
- import { fakeAsync , ComponentFixture , TestBed } from '@angular/core/testing' ;
3
- import { MatSidenavModule } from '@angular/material/sidenav' ;
4
12
import { < %= classify ( name ) % > Component } from './<%= dasherize(name) %>.component' ;
5
13
6
14
describe ( '<%= classify(name) %>Component' , ( ) => {
7
15
let component : < %= classify ( name ) % > Component ;
8
16
let fixture : ComponentFixture < < %= classify ( name ) % > Component > ;
9
17
10
- beforeEach ( fakeAsync ( ( ) => {
18
+ beforeEach ( async ( ( ) => {
11
19
TestBed . configureTestingModule ( {
12
- imports : [ MatSidenavModule ] ,
13
- declarations : [ < %= classify ( name ) % > Component ]
14
- } )
15
- . compileComponents ( ) ;
20
+ declarations : [ < %= classify ( name ) % > Component ] ,
21
+ imports : [
22
+ NoopAnimationsModule ,
23
+ LayoutModule ,
24
+ MatButtonModule ,
25
+ MatIconModule ,
26
+ MatListModule ,
27
+ MatSidenavModule ,
28
+ MatToolbarModule ,
29
+ ]
30
+ } ) . compileComponents ( ) ;
31
+ } ) ) ;
16
32
33
+ beforeEach ( ( ) => {
17
34
fixture = TestBed . createComponent ( < %= classify ( name ) % > Component ) ;
18
35
component = fixture . componentInstance ;
19
36
fixture . detectChanges ( ) ;
20
- } ) ) ;
37
+ } ) ;
21
38
22
39
it ( 'should compile' , ( ) => {
23
40
expect ( component ) . toBeTruthy ( ) ;
Original file line number Diff line number Diff line change 1
-
2
- import { fakeAsync , ComponentFixture , TestBed } from '@angular/core/testing' ;
1
+ import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
2
+ import { NoopAnimationsModule } from '@angular/platform-browser/animations' ;
3
+ import { MatPaginatorModule , MatSortModule , MatTableModule } from '@angular/material' ;
3
4
4
5
import { < %= classify ( name ) % > Component } from './<%= dasherize(name) %>.component' ;
5
6
6
7
describe ( '<%= classify(name) %>Component' , ( ) => {
7
8
let component : < %= classify ( name ) % > Component ;
8
9
let fixture : ComponentFixture < < %= classify ( name ) % > Component > ;
9
10
10
- beforeEach ( fakeAsync ( ( ) => {
11
+ beforeEach ( async ( ( ) => {
11
12
TestBed . configureTestingModule ( {
12
- declarations : [ < %= classify ( name ) % > Component ]
13
- } )
14
- . compileComponents ( ) ;
13
+ declarations : [ < %= classify ( name ) % > Component ] ,
14
+ imports : [
15
+ NoopAnimationsModule ,
16
+ MatPaginatorModule ,
17
+ MatSortModule ,
18
+ MatTableModule ,
19
+ ]
20
+ } ) . compileComponents ( ) ;
21
+ } ) ) ;
15
22
23
+ beforeEach ( ( ) => {
16
24
fixture = TestBed . createComponent ( < %= classify ( name ) % > Component ) ;
17
25
component = fixture . componentInstance ;
18
26
fixture . detectChanges ( ) ;
19
- } ) ) ;
27
+ } ) ;
20
28
21
29
it ( 'should compile' , ( ) => {
22
30
expect ( component ) . toBeTruthy ( ) ;
Original file line number Diff line number Diff line change 1
-
2
- import { fakeAsync , ComponentFixture , TestBed } from '@angular/core/testing ' ;
1
+ import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
2
+ import { MatButtonModule , MatIconModule , MatTreeModule } from '@angular/material ' ;
3
3
4
4
import { < %= classify ( name ) % > Component } from './<%= dasherize(name) %>.component' ;
5
5
6
6
describe ( '<%= classify(name) %>Component' , ( ) => {
7
7
let component : < %= classify ( name ) % > Component ;
8
8
let fixture : ComponentFixture < < %= classify ( name ) % > Component > ;
9
9
10
- beforeEach ( fakeAsync ( ( ) => {
10
+ beforeEach ( async ( ( ) => {
11
11
TestBed . configureTestingModule ( {
12
- declarations : [ < %= classify ( name ) % > Component ]
13
- } )
14
- . compileComponents ( ) ;
12
+ declarations : [ < %= classify ( name ) % > Component ] ,
13
+ imports : [
14
+ MatButtonModule ,
15
+ MatIconModule ,
16
+ MatTreeModule ,
17
+ ]
18
+ } ) . compileComponents ( ) ;
19
+ } ) ) ;
15
20
21
+ beforeEach ( ( ) => {
16
22
fixture = TestBed . createComponent ( < %= classify ( name ) % > Component ) ;
17
23
component = fixture . componentInstance ;
18
24
fixture . detectChanges ( ) ;
19
- } ) ) ;
25
+ } ) ;
20
26
21
27
it ( 'should compile' , ( ) => {
22
28
expect ( component ) . toBeTruthy ( ) ;
You can’t perform that action at this time.
0 commit comments