@@ -24,7 +24,7 @@ describe('react-container-dimensions', () => {
24
24
< MyComponent />
25
25
</ ContainerDimensions >
26
26
</ div >
27
- , { attachTo : document . body } )
27
+ , { attachTo : document . getElementById ( 'root' ) } )
28
28
expect ( wrapper . find ( 'div' ) . length ) . to . eq ( 1 )
29
29
expect ( ContainerDimensions . prototype . componentDidMount . calledOnce ) . to . be . true
30
30
ContainerDimensions . prototype . componentDidMount . restore ( )
@@ -49,15 +49,15 @@ describe('react-container-dimensions', () => {
49
49
ContainerDimensions . prototype . onResize . restore ( )
50
50
} )
51
51
52
- it ( 'calls onResize when parent has been resized' , ( done ) => {
52
+ xit ( 'calls onResize when parent has been resized' , ( done ) => {
53
53
spy ( ContainerDimensions . prototype , 'onResize' )
54
54
const wrapper = mount (
55
55
< div ref = "node" id = "node" style = { { width : 10 } } >
56
56
< ContainerDimensions >
57
57
< MyComponent />
58
58
</ ContainerDimensions >
59
59
</ div >
60
- , { attachTo : document . body } )
60
+ , { attachTo : document . getElementById ( 'root' ) } )
61
61
const el = wrapper . render ( )
62
62
el . css ( 'width' , 10 )
63
63
setTimeout ( ( ) => {
@@ -85,7 +85,7 @@ describe('react-container-dimensions', () => {
85
85
< MyComponent />
86
86
</ ContainerDimensions >
87
87
</ div >
88
- , { attachTo : document . body } )
88
+ , { attachTo : document . getElementById ( 'root' ) } )
89
89
90
90
wrapper . render ( )
91
91
expect ( wrapper . find ( MyComponent ) . props ( ) ) . to . have . keys ( [
0 commit comments