Skip to content

Commit 0967404

Browse files
committed
Better description
1 parent 3ba55d8 commit 0967404

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/compat/async.test.jsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ describe('Async renderToString', () => {
190190
expect(rendered).to.equal('<p>ok</p>');
191191
});
192192

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();
195195

196196
let c = 0;
197197

@@ -217,11 +217,11 @@ describe('Async renderToString', () => {
217217
);
218218

219219
const rendered = await renderToStringAsync(
220-
<ThemeContext.Provider value="dark">
220+
<Context.Provider>
221221
<Fetcher>
222222
<LoadableComponent />
223223
</Fetcher>
224-
</ThemeContext.Provider>
224+
</Context.Provider>
225225
);
226226

227227
expect(rendered).to.equal(`<div>2</div>`);

0 commit comments

Comments
 (0)