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>(
166
166
}
167
167
if ( type in actionsMap ) {
168
168
throw new Error (
169
- '` builder.addCase` cannot be called with two reducers for the same action type ' + type
169
+ `\` builder.addCase\ ` cannot be called with two reducers for the same action type '${ type } '`
170
170
)
171
171
}
172
172
actionsMap [ type ] = reducer
Original file line number Diff line number Diff line change @@ -460,7 +460,7 @@ describe('createReducer', () => {
460
460
. addCase ( decrement , ( state , action ) => state - action . payload )
461
461
)
462
462
) . toThrowErrorMatchingInlineSnapshot (
463
- '"`builder.addCase` cannot be called with two reducers for the same action type increment"'
463
+ '"`builder.addCase` cannot be called with two reducers for the same action type \' increment\' "'
464
464
)
465
465
expect ( ( ) =>
466
466
createReducer ( 0 , ( builder ) =>
@@ -470,7 +470,7 @@ describe('createReducer', () => {
470
470
. addCase ( decrement , ( state , action ) => state - action . payload )
471
471
)
472
472
) . toThrowErrorMatchingInlineSnapshot (
473
- '"`builder.addCase` cannot be called with two reducers for the same action type increment"'
473
+ '"`builder.addCase` cannot be called with two reducers for the same action type \' increment\' "'
474
474
)
475
475
} )
476
476
You can’t perform that action at this time.
0 commit comments