Skip to content

Commit

Permalink
fix warning in test (reduxjs#3527)
Browse files Browse the repository at this point in the history
  • Loading branch information
cellog authored and timdorr committed Aug 29, 2019
1 parent 810580f commit 3bfb592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/replaceReducers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('replaceReducers test', () => {
bar: (state = 2, _action) => state
})
const store = createStore((state, action) => {
if (state === undefined) return 5
if (state === undefined) return { type: 5 }
return action
})

Expand Down

0 comments on commit 3bfb592

Please sign in to comment.