fix test to match signature

This commit is contained in:
Yanick Champoux 2019-10-29 11:34:42 -04:00
parent fb61c9bc1e
commit a6b83bbfa0

View File

@ -28,7 +28,7 @@ test('reducer', () => {
},
});
let state = reducer(null, {type:'noop'});
let state = reducer(undefined, {type:'noop'});
expect(state).toEqual({counter: 1});
@ -116,7 +116,7 @@ test('precedence between root and sub-reducers', () => {
foo: { bar: 4, quux: 3 }
});
expect( reducer(null,actions.inc() ) ).toEqual({
expect( reducer(undefined,actions.inc() ) ).toEqual({
foo: { bar: 5, quux: 3 }, surprise: 5
});