@@ -23,7 +23,7 @@ test('can render to ElementPortal using element id', t => {
23
23
const Greeting = ( ) => ( < div > Hello</ div > ) ;
24
24
render (
25
25
< div >
26
- < ElementPortal id = { headerId } >
26
+ < ElementPortal selector = { `# ${ headerId } ` } >
27
27
< Greeting />
28
28
</ ElementPortal >
29
29
</ div > ,
@@ -127,7 +127,7 @@ test('erases classes and styles', t => {
127
127
const Greeting = ( ) => ( < div > Hello</ div > ) ;
128
128
render (
129
129
< div >
130
- < ElementPortal id = { headerId } shouldReset >
130
+ < ElementPortal selector = { `# ${ headerId } ` } shouldReset >
131
131
< Greeting />
132
132
</ ElementPortal >
133
133
</ div > ,
@@ -162,7 +162,7 @@ test('transfers context to the portal', t => {
162
162
render (
163
163
< Provider store = { store } >
164
164
< div >
165
- < ElementPortal id = { headerId } >
165
+ < ElementPortal selector = { `# ${ headerId } ` } >
166
166
< CountContainer />
167
167
</ ElementPortal >
168
168
</ div >
@@ -190,7 +190,7 @@ test('can be used as higher-order component', t => {
190
190
191
191
render (
192
192
< div >
193
- < GreetingWithPortal id = { headerId } />
193
+ < GreetingWithPortal selector = { `# ${ headerId } ` } />
194
194
</ div > ,
195
195
document . getElementById ( appId )
196
196
) ;
@@ -221,7 +221,7 @@ test('can be composed with other HOC\'s', t => {
221
221
222
222
render (
223
223
< Provider store = { store } >
224
- < MyComposedComponent id = { headerId } />
224
+ < MyComposedComponent selector = { `# ${ headerId } ` } />
225
225
</ Provider > ,
226
226
document . getElementById ( appId )
227
227
) ;
@@ -247,7 +247,7 @@ test('map dom node to props when used as HOC', t => {
247
247
248
248
render (
249
249
< div >
250
- < GreetingWithPortal id = { headerId } mapDomNodeToProps = { mapDomNodeToProps } />
250
+ < GreetingWithPortal selector = { `# ${ headerId } ` } mapDomNodeToProps = { mapDomNodeToProps } />
251
251
</ div > ,
252
252
document . getElementById ( appId )
253
253
) ;
@@ -270,7 +270,7 @@ test('passes props through to the inner component when used as a HOC', t => {
270
270
271
271
render (
272
272
< div >
273
- < GreetingWithPortal id = { headerId } name = "Joe" />
273
+ < GreetingWithPortal selector = { `# ${ headerId } ` } name = "Joe" />
274
274
</ div > ,
275
275
document . getElementById ( appId )
276
276
) ;
0 commit comments