Skip to content

Commit 1480382

Browse files
committed
await all test steps
1 parent a9a4012 commit 1480382

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

exercises/09.errors/02.solution.show-boundary/error-boundary.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const user = userEvent.setup()
66

77
import './index.tsx'
88

9-
testStep('Error boundary is rendered after form submission', async () => {
9+
await testStep('Error boundary is rendered after form submission', async () => {
1010
// submit the form
1111
await user.click(await screen.findByRole('button', { name: /submit/i }))
1212

exercises/09.errors/03.solution.reset/error-boundary.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const user = userEvent.setup()
66

77
import './index.tsx'
88

9-
testStep('Error boundary is rendered after form submission', async () => {
9+
await testStep('Error boundary is rendered after form submission', async () => {
1010
// submit the form
1111
await user.click(await screen.findByRole('button', { name: /submit/i }))
1212

@@ -24,7 +24,7 @@ testStep('Error boundary is rendered after form submission', async () => {
2424
expect(form).toBeNull()
2525
})
2626

27-
testStep('Clicking "Try again" resets the error boundary', async () => {
27+
await testStep('Clicking "Try again" resets the error boundary', async () => {
2828
// Click the "Try again" button
2929
const tryAgainButton = await screen.findByRole('button', {
3030
name: /try again/i,

0 commit comments

Comments
 (0)