fix test to match signature

typescript
Yanick Champoux 2019-10-29 11:34:42 -04:00
parent fb61c9bc1e
commit a6b83bbfa0
1 changed files with 2 additions and 2 deletions

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
});