1
1
import { Component , ViewChild } from '@angular/core' ;
2
2
import {
3
- async ,
4
- TestBed
3
+ async ,
4
+ TestBed
5
5
} from '@angular/core/testing' ;
6
6
import { By } from '@angular/platform-browser' ;
7
7
import { IgxButtonDirective } from './button.directive' ;
8
8
9
9
import { configureTestSuite } from '../../test-utils/configure-suite' ;
10
10
import { IgxIconComponent , IgxIconService } from '../../icon' ;
11
- import { HttpClientTestingModule } from '@angular/common/http/testing' ;
12
11
import { DisplayDensity } from '../../core/density' ;
13
12
14
13
const FLAT_RAISED_OUTLINED_BUTTON_COMPACT = 'igx-button--compact' ;
@@ -27,10 +26,9 @@ describe('IgxButton', () => {
27
26
IgxButtonDirective ,
28
27
IgxIconComponent
29
28
] ,
30
- imports : [ HttpClientTestingModule ] ,
31
29
providers : [ IgxIconService ]
32
30
} )
33
- . compileComponents ( ) ;
31
+ . compileComponents ( ) ;
34
32
} ) ) ;
35
33
36
34
it ( 'Initializes a button' , ( ) => {
@@ -114,7 +112,7 @@ describe('IgxButton', () => {
114
112
115
113
@Component ( {
116
114
template :
117
- `<span igxButton="flat" igx-ripple="white">
115
+ `<span igxButton="flat" igx-ripple="white">
118
116
<i class="material-icons">add</i>
119
117
</span>`
120
118
} )
@@ -123,7 +121,7 @@ class InitButtonComponent {
123
121
124
122
@Component ( {
125
123
template :
126
- `<span igxButton="raised"
124
+ `<span igxButton="raised"
127
125
[igxButtonColor]="foreground"
128
126
[igxButtonBackground]="background"
129
127
[disabled]="disabled">Test</span>`
@@ -136,7 +134,7 @@ class ButtonWithAttribsComponent {
136
134
137
135
@Component ( {
138
136
template :
139
- `
137
+ `
140
138
<button #flat class="flatBtn" igxButton="flat" [displayDensity]="density">Flat</button>
141
139
<button #raised class="raisedBtn" igxButton="raised" [displayDensity]="density">Raised</button>
142
140
<button #outlined class="outlinedBtn" igxButton="outlined" [displayDensity]="density">Outlined</button>
0 commit comments