Skip to content

Commit

Permalink
Update async.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock authored Feb 9, 2024
1 parent 80c0a70 commit ad7b662
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/compat/async.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import render from '../../src/index.js';
import { renderToStringAsync } from '../../src/index.js';
import { h } from 'preact';
import { Suspense } from 'preact/compat';
import { expect } from 'chai';
Expand All @@ -8,7 +8,7 @@ describe('Async renderToString', () => {
it('should render JSX after a suspense boundary', async () => {
const { Suspender, suspended } = createSuspender();

const promise = render(
const promise = renderToStringAsync(
<Suspense fallback={<div>loading...</div>}>
<Suspender>
<div class="foo">bar</div>
Expand All @@ -35,7 +35,7 @@ describe('Async renderToString', () => {
suspended: suspendedTwo
} = createSuspender();

const promise = render(
const promise = renderToStringAsync(
<ul>
<Suspense fallback={null}>
<SuspenderOne>
Expand Down

0 comments on commit ad7b662

Please sign in to comment.