Skip to content

Commit 6521321

Browse files
ci: apply automated fixes
1 parent d2633f5 commit 6521321

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

packages/react-router/tests/store-updates-during-navigation.test.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@ function setup({
4747
const rootRoute = createRootRoute({
4848
component: function RootComponent() {
4949
useRouterState({ select })
50-
return <>
51-
<Link to="/">Back</Link>
52-
<Link to="/posts">Posts</Link>
53-
<Outlet />
54-
</>
50+
return (
51+
<>
52+
<Link to="/">Back</Link>
53+
<Link to="/posts">Posts</Link>
54+
<Outlet />
55+
</>
56+
)
5557
},
5658
})
5759
const indexRoute = createRoute({
@@ -96,7 +98,9 @@ function setup({
9698
async function back() {
9799
const link = await waitFor(() => screen.getByRole('link', { name: 'Back' }))
98100
fireEvent.click(link)
99-
const title = await waitFor(() => screen.getByRole('heading', { name: /Index/ }))
101+
const title = await waitFor(() =>
102+
screen.getByRole('heading', { name: /Index/ }),
103+
)
100104
expect(title).toBeInTheDocument()
101105
}
102106

0 commit comments

Comments
 (0)