File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ export function executeReducerBuilderCallback<S>(
166166 }
167167 if ( type in actionsMap ) {
168168 throw new Error (
169- '` builder.addCase` cannot be called with two reducers for the same action type'
169+ `\` builder.addCase\ ` cannot be called with two reducers for the same action type ' ${ type } '`
170170 )
171171 }
172172 actionsMap [ type ] = reducer
Original file line number Diff line number Diff line change @@ -460,7 +460,7 @@ describe('createReducer', () => {
460460 . addCase ( decrement , ( state , action ) => state - action . payload )
461461 )
462462 ) . toThrowErrorMatchingInlineSnapshot (
463- '"`builder.addCase` cannot be called with two reducers for the same action type"'
463+ '"`builder.addCase` cannot be called with two reducers for the same action type \'increment\' "'
464464 )
465465 expect ( ( ) =>
466466 createReducer ( 0 , ( builder ) =>
@@ -470,7 +470,7 @@ describe('createReducer', () => {
470470 . addCase ( decrement , ( state , action ) => state - action . payload )
471471 )
472472 ) . toThrowErrorMatchingInlineSnapshot (
473- '"`builder.addCase` cannot be called with two reducers for the same action type"'
473+ '"`builder.addCase` cannot be called with two reducers for the same action type \'increment\' "'
474474 )
475475 } )
476476
You can’t perform that action at this time.
0 commit comments