Skip to content

Commit 966534a

Browse files
ci: apply automated fixes
1 parent f53a887 commit 966534a

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

packages/solid-router/tests/RouterProvider.test.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
import { describe, expect, it } from 'vitest'
22
import { render, screen } from '@solidjs/testing-library'
33
import { createContext, useContext } from 'solid-js'
4-
import {
5-
createRootRoute,
6-
createRouter,
7-
} from '../src'
4+
import { createRootRoute, createRouter } from '../src'
85
import { RouterProvider } from '../src/RouterProvider'
96

107
describe('RouterProvider', () => {
118
it('should provide context through RouterProvider Wrap', async () => {
129
const rootRoute = createRootRoute({
1310
component: () => {
1411
const contextValue = useContext(ctx)
15-
expect(contextValue, "Context is not provided").not.toBeUndefined()
12+
expect(contextValue, 'Context is not provided').not.toBeUndefined()
1613

1714
return <div>{contextValue}</div>
1815
},
@@ -25,9 +22,14 @@ describe('RouterProvider', () => {
2522

2623
const ctx = createContext<string>()
2724

28-
render(() => <RouterProvider router={router} Wrap={props => {
29-
return <ctx.Provider value={"findMe"}>{props.children}</ctx.Provider>
30-
}} />)
25+
render(() => (
26+
<RouterProvider
27+
router={router}
28+
Wrap={(props) => {
29+
return <ctx.Provider value={'findMe'}>{props.children}</ctx.Provider>
30+
}}
31+
/>
32+
))
3133

3234
const indexElem = await screen.findByText('findMe')
3335
expect(indexElem).toBeInTheDocument()

0 commit comments

Comments
 (0)