@@ -38,9 +38,9 @@ describe('<TreeNode />', () => {
38
38
describe ( 'checked' , ( ) => {
39
39
it ( 'should render icons associated with each check state' , ( ) => {
40
40
const iconMap = {
41
- 0 : < i className = "rct-icon rct-icon-uncheck" /> ,
42
- 1 : < i className = "rct-icon rct-icon-check" /> ,
43
- 2 : < i className = "rct-icon rct-icon-half-check" /> ,
41
+ 0 : < span className = "rct-icon rct-icon-uncheck" /> ,
42
+ 1 : < span className = "rct-icon rct-icon-check" /> ,
43
+ 2 : < span className = "rct-icon rct-icon-half-check" /> ,
44
44
} ;
45
45
46
46
Object . keys ( iconMap ) . forEach ( ( state ) => {
@@ -99,29 +99,29 @@ describe('<TreeNode />', () => {
99
99
< TreeNode { ...baseProps } expanded rawChildren = { [ { value : 'europa' , label : 'Europa' } ] } /> ,
100
100
) ;
101
101
102
- assert . isTrue ( wrapper . contains ( < i className = "rct-icon rct-icon-expand-open" /> ) ) ;
103
- assert . isTrue ( wrapper . contains ( < i className = "rct-icon rct-icon-parent-open" /> ) ) ;
102
+ assert . isTrue ( wrapper . contains ( < span className = "rct-icon rct-icon-expand-open" /> ) ) ;
103
+ assert . isTrue ( wrapper . contains ( < span className = "rct-icon rct-icon-parent-open" /> ) ) ;
104
104
} ) ;
105
105
106
106
it ( 'should render collapsed icons when set to false' , ( ) => {
107
107
const wrapper = shallow (
108
108
< TreeNode { ...baseProps } expanded = { false } rawChildren = { [ { value : 'europa' , label : 'Europa' } ] } /> ,
109
109
) ;
110
110
111
- assert . isTrue ( wrapper . contains ( < i className = "rct-icon rct-icon-expand-close" /> ) ) ;
112
- assert . isTrue ( wrapper . contains ( < i className = "rct-icon rct-icon-parent-close" /> ) ) ;
111
+ assert . isTrue ( wrapper . contains ( < span className = "rct-icon rct-icon-expand-close" /> ) ) ;
112
+ assert . isTrue ( wrapper . contains ( < span className = "rct-icon rct-icon-parent-close" /> ) ) ;
113
113
} ) ;
114
114
} ) ;
115
115
116
116
describe ( 'icon' , ( ) => {
117
117
it ( 'should replace the node\'s icons with the supplied value' , ( ) => {
118
118
const wrapper = shallow (
119
- < TreeNode { ...baseProps } icon = { < i className = "fa fa-plus" /> } /> ,
119
+ < TreeNode { ...baseProps } icon = { < span className = "fa fa-plus" /> } /> ,
120
120
) ;
121
121
122
122
assert . isTrue ( wrapper . contains (
123
123
< span className = "rct-node-icon" >
124
- < i className = "fa fa-plus" />
124
+ < span className = "fa fa-plus" />
125
125
</ span > ,
126
126
) ) ;
127
127
} ) ;
0 commit comments