File tree Expand file tree Collapse file tree
test/specs/elements/Button Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6060 "babel-standalone" : " ^6.18.1" ,
6161 "brace" : " ^0.9.0" ,
6262 "chai" : " ^3.5.0" ,
63- "chai-enzyme" : " ^0.5.2 " ,
63+ "chai-enzyme" : " ^0.6.0 " ,
6464 "connect-history-api-fallback" : " ^1.2.0" ,
6565 "copy-to-clipboard" : " ^3.0.5" ,
6666 "cross-env" : " ^3.1.3" ,
Original file line number Diff line number Diff line change @@ -113,22 +113,22 @@ describe('Button', () => {
113113 const wrapper = shallow ( < Button labelPosition = 'left' label = 'foo' /> )
114114 wrapper . should . have . exactly ( 1 ) . descendants ( 'Label[pointing="right"]' )
115115
116- wrapper . children ( ) . at ( 0 ) . should . match ( '.ui.label' )
116+ wrapper . children ( ) . at ( 0 ) . shallow ( ) . should . match ( '.ui.label' )
117117 wrapper . children ( ) . at ( 1 ) . should . match ( 'button' )
118118 } )
119119 it ( 'is after the button and pointing="left" when labelPosition="right"' , ( ) => {
120120 const wrapper = shallow ( < Button labelPosition = 'right' label = 'foo' /> )
121121 wrapper . should . have . exactly ( 1 ) . descendants ( 'Label[pointing="left"]' )
122122
123123 wrapper . children ( ) . at ( 0 ) . should . match ( 'button' )
124- wrapper . children ( ) . at ( 1 ) . should . match ( '.ui.label' )
124+ wrapper . children ( ) . at ( 1 ) . shallow ( ) . should . match ( '.ui.label' )
125125 } )
126126 it ( 'is after the button and pointing="left" by default' , ( ) => {
127127 const wrapper = shallow ( < Button label = 'foo' /> )
128128 wrapper . should . have . exactly ( 1 ) . descendants ( 'Label[pointing="left"]' )
129129
130130 wrapper . children ( ) . at ( 0 ) . should . match ( 'button' )
131- wrapper . children ( ) . at ( 1 ) . should . match ( '.ui.label' )
131+ wrapper . children ( ) . at ( 1 ) . shallow ( ) . should . match ( '.ui.label' )
132132 } )
133133 } )
134134
You can’t perform that action at this time.
0 commit comments