@@ -38,9 +38,9 @@ describe('<TreeNode />', () => {
3838 describe ( 'checked' , ( ) => {
3939 it ( 'should render icons associated with each check state' , ( ) => {
4040 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" /> ,
4444 } ;
4545
4646 Object . keys ( iconMap ) . forEach ( ( state ) => {
@@ -99,29 +99,29 @@ describe('<TreeNode />', () => {
9999 < TreeNode { ...baseProps } expanded rawChildren = { [ { value : 'europa' , label : 'Europa' } ] } /> ,
100100 ) ;
101101
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" /> ) ) ;
104104 } ) ;
105105
106106 it ( 'should render collapsed icons when set to false' , ( ) => {
107107 const wrapper = shallow (
108108 < TreeNode { ...baseProps } expanded = { false } rawChildren = { [ { value : 'europa' , label : 'Europa' } ] } /> ,
109109 ) ;
110110
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" /> ) ) ;
113113 } ) ;
114114 } ) ;
115115
116116 describe ( 'icon' , ( ) => {
117117 it ( 'should replace the node\'s icons with the supplied value' , ( ) => {
118118 const wrapper = shallow (
119- < TreeNode { ...baseProps } icon = { < i className = "fa fa-plus" /> } /> ,
119+ < TreeNode { ...baseProps } icon = { < span className = "fa fa-plus" /> } /> ,
120120 ) ;
121121
122122 assert . isTrue ( wrapper . contains (
123123 < span className = "rct-node-icon" >
124- < i className = "fa fa-plus" />
124+ < span className = "fa fa-plus" />
125125 </ span > ,
126126 ) ) ;
127127 } ) ;
0 commit comments