File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
packages/toolkit/src/query/tests Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,11 @@ import { server } from './mocks/server'
3535import type { UnknownAction } from 'redux'
3636import type { SubscriptionOptions } from '@reduxjs/toolkit/dist/query/core/apiState'
3737import 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'
3943import { delay } from '../../utils'
4044import type { SubscriptionSelectors } from '../core/buildMiddleware/types'
4145import { 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 >
You can’t perform that action at this time.
0 commit comments