File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -190,8 +190,8 @@ describe('Async renderToString', () => {
190
190
expect ( rendered ) . to . equal ( '<p>ok</p>' ) ;
191
191
} ) ;
192
192
193
- it ( 'should render JSX after a urql component' , async ( ) => {
194
- const ThemeContext = createContext ( 'light' ) ;
193
+ it ( 'should work with setup comparable to URQL containing a lazy loaded component' , async ( ) => {
194
+ const Context = createContext ( ) ;
195
195
196
196
let c = 0 ;
197
197
@@ -217,11 +217,11 @@ describe('Async renderToString', () => {
217
217
) ;
218
218
219
219
const rendered = await renderToStringAsync (
220
- < ThemeContext . Provider value = "dark" >
220
+ < Context . Provider >
221
221
< Fetcher >
222
222
< LoadableComponent />
223
223
</ Fetcher >
224
- </ ThemeContext . Provider >
224
+ </ Context . Provider >
225
225
) ;
226
226
227
227
expect ( rendered ) . to . equal ( `<div>2</div>` ) ;
You can’t perform that action at this time.
0 commit comments