Skip to content

Commit b5de7df

Browse files
Samuel MaierSamuel Maier
Samuel Maier
authored and
Samuel Maier
committed
Spread-Syntax is polyfilled with babel I guess?
1 parent cc9b391 commit b5de7df

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/createStore.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default function createStore(reducer, preloadedState, enhancer, options)
6767
throw new Error('Expected the reducer to be a function.')
6868
}
6969

70-
options = { ...defaultOptions, ...options } // @todo find good supported option
70+
options = { ...defaultOptions, ...options }
7171

7272
let banDispatch = !options.rules.allowDispatch
7373
let banGetState = !options.rules.allowGetState

test/createStore.spec.js

-3
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,6 @@ describe('createStore', () => {
466466
})
467467

468468
it('does allow dispatch() from within a reducer if configured accordingly', () => {
469-
console.log('-------------------NOW---------------------');
470469
const store = createStore(reducers.dispatchInTheMiddleOfReducer, identity, {rules: { allowDispatch: true } })
471470

472471
expect(() =>
@@ -485,7 +484,6 @@ describe('createStore', () => {
485484
})
486485

487486
it('does allow getState() from within a reducer if configured accordingly', () => {
488-
console.log('-------------------NOW---------------------');
489487
const store = createStore(reducers.getStateInTheMiddleOfReducer, identity, {rules: { allowGetState: true } })
490488

491489
expect(() =>
@@ -502,7 +500,6 @@ describe('createStore', () => {
502500
})
503501

504502
it('does allow subscribe() from within a reducer if configured accordingly', () => {
505-
console.log('-------------------NOW---------------------');
506503
const store = createStore(reducers.subscribeInTheMiddleOfReducer, identity, {rules: { allowSubscriptionHandling: true } })
507504

508505
expect(() =>

0 commit comments

Comments
 (0)