From a6b83bbfa0fbca52f3f112c08e79ce03893f40c0 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Tue, 29 Oct 2019 11:34:42 -0400 Subject: [PATCH] fix test to match signature --- src/test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test.ts b/src/test.ts index 4468d57..e34a2ee 100644 --- a/src/test.ts +++ b/src/test.ts @@ -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 });