Skip to content

Commit b994bd9

Browse files
ci: apply automated fixes
1 parent 1ff7a76 commit b994bd9

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ async function setupAndRun({
7979
render(<RouterProvider router={router} />)
8080

8181
// navigate to /posts
82-
const link = await waitFor(() =>
83-
screen.getByRole('link', { name: 'Posts' }),
84-
)
82+
const link = await waitFor(() => screen.getByRole('link', { name: 'Posts' }))
8583
const before = select.mock.calls.length
8684
act(() => link.click())
87-
const title = await waitFor(() => screen.getByRole('heading', { name: /Title$/ })) // matches /posts and /other
85+
const title = await waitFor(() =>
86+
screen.getByRole('heading', { name: /Title$/ }),
87+
) // matches /posts and /other
8888
expect(title).toBeInTheDocument()
8989
const after = select.mock.calls.length
9090

@@ -109,7 +109,9 @@ describe("Store doesn't update *too many* times during navigation", () => {
109109

110110
test('redirection', async () => {
111111
const updates = await setupAndRun({
112-
beforeLoad: () => { throw redirect({ to: '/other' }) }
112+
beforeLoad: () => {
113+
throw redirect({ to: '/other' })
114+
},
113115
})
114116

115117
// This number should be as small as possible to minimize the amount of work

0 commit comments

Comments
 (0)