Skip to content

Commit 1fb2158

Browse files
committed
Fix tests for error message
1 parent f90c117 commit 1fb2158

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/toolkit/src/tests/configureStore.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ describe('configureStore', async () => {
102102
describe('given no reducer', () => {
103103
it('throws', () => {
104104
expect(configureStore).toThrow(
105-
'"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers'
105+
'`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers'
106106
)
107107
})
108108
})
@@ -126,7 +126,7 @@ describe('configureStore', async () => {
126126
it('throws an error requiring a callback', () => {
127127
// @ts-expect-error
128128
expect(() => configureStore({ middleware: [], reducer })).toThrow(
129-
'"middleware" field must be a callback'
129+
'`middleware` field must be a callback'
130130
)
131131
})
132132
})
@@ -291,14 +291,14 @@ describe('configureStore', async () => {
291291
describe('invalid arguments', () => {
292292
test('enhancers is not a callback', () => {
293293
expect(() => configureStore({ reducer, enhancers: [] as any })).toThrow(
294-
'"enhancers" field must be a callback'
294+
'`enhancers` field must be a callback'
295295
)
296296
})
297297

298298
test('callback fails to return array', () => {
299299
expect(() =>
300300
configureStore({ reducer, enhancers: (() => {}) as any })
301-
).toThrow('"enhancers" callback must return an array')
301+
).toThrow('`enhancers` callback must return an array')
302302
})
303303

304304
test('array contains non-function', () => {

0 commit comments

Comments
 (0)