Skip to content

Commit d357d4b

Browse files
committed
chore: format
1 parent 70c89bf commit d357d4b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/start/framework/testing.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@ We can test this component with `createRoutesStub`. It takes an array of objects
3636

3737
```tsx
3838
import { createRoutesStub } from "react-router";
39-
import { render, screen, waitFor } from "@testing-library/react";
40-
import userEvent from '@testing-library/user-event';
39+
import {
40+
render,
41+
screen,
42+
waitFor,
43+
} from "@testing-library/react";
44+
import userEvent from "@testing-library/user-event";
4145
import { LoginForm } from "./LoginForm";
4246

4347
test("LoginForm renders error messages", async () => {
@@ -65,8 +69,6 @@ test("LoginForm renders error messages", async () => {
6569
// simulate interactions
6670
userEvent.click(screen.getByText("Login"));
6771
await waitFor(() => screen.findByText(USER_MESSAGE));
68-
await waitFor(() =>
69-
screen.findByText(PASSWORD_MESSAGE)
70-
);
72+
await waitFor(() => screen.findByText(PASSWORD_MESSAGE));
7173
});
7274
```

0 commit comments

Comments
 (0)