Skip to content

Commit 6f6b48b

Browse files
committed
Fix formatting
1 parent 86f7eea commit 6f6b48b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/configureStore.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ describe('configureStore', () => {
8989

9090
describe('given a middleware creation function that returns undefined', () => {
9191
it('throws an error', () => {
92-
const invalidBuilder = jest.fn(getDefaultMiddleware => undefined as any)
92+
const invalidBuilder = jest.fn((getDefaultMiddleware) => undefined as any)
9393
expect(() =>
9494
configureStore({ middleware: invalidBuilder, reducer })
9595
).toThrow(
@@ -100,7 +100,7 @@ describe('configureStore', () => {
100100

101101
describe('given a middleware creation function that returns an array with non-functions', () => {
102102
it('throws an error', () => {
103-
const invalidBuilder = jest.fn(getDefaultMiddleware => [true] as any)
103+
const invalidBuilder = jest.fn((getDefaultMiddleware) => [true] as any)
104104
expect(() =>
105105
configureStore({ middleware: invalidBuilder, reducer })
106106
).toThrow('each middleware provided to configureStore must be a function')

src/configureStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export function configureStore<
165165
}
166166
if (
167167
!IS_PRODUCTION &&
168-
finalMiddleware.some(item => typeof item !== 'function')
168+
finalMiddleware.some((item) => typeof item !== 'function')
169169
) {
170170
throw new Error(
171171
'each middleware provided to configureStore must be a function'

0 commit comments

Comments
 (0)