Skip to content

Commit 5d87dd3

Browse files
committed
format buildHooks just to prove it still fails
1 parent c9dce74 commit 5d87dd3

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

packages/toolkit/src/query/tests/buildHooks.test.tsx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ import { server } from './mocks/server'
3535
import type { UnknownAction } from 'redux'
3636
import type { SubscriptionOptions } from '@reduxjs/toolkit/dist/query/core/apiState'
3737
import type { SerializedError } from '@reduxjs/toolkit'
38-
import { createListenerMiddleware, configureStore, createSlice } from '@reduxjs/toolkit'
38+
import {
39+
createListenerMiddleware,
40+
configureStore,
41+
createSlice,
42+
} from '@reduxjs/toolkit'
3943
import { delay } from '../../utils'
4044
import type { SubscriptionSelectors } from '../core/buildMiddleware/types'
4145
import { countObjectKeys } from '../utils/countObjectKeys'
@@ -2053,13 +2057,13 @@ describe('hooks with createApi defaults set', () => {
20532057
})
20542058

20552059
const counterSlice = createSlice({
2056-
name: "counter",
2060+
name: 'counter',
20572061
initialState: { count: 0 },
20582062
reducers: {
20592063
increment(state) {
20602064
state.count++
2061-
}
2062-
}
2065+
},
2066+
},
20632067
})
20642068

20652069
const storeRef = setupApiStore(api, {
@@ -2353,7 +2357,9 @@ describe('hooks with createApi defaults set', () => {
23532357
return (
23542358
<div
23552359
data-testid="incrementButton"
2356-
onClick={() => storeRef.store.dispatch(counterSlice.actions.increment())}
2360+
onClick={() =>
2361+
storeRef.store.dispatch(counterSlice.actions.increment())
2362+
}
23572363
>
23582364
Increment Count
23592365
</div>

0 commit comments

Comments
 (0)