From 99b500c740c44d86a8451ab0b2009cdfe2d0744e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=A4ggmark?= Date: Thu, 31 Jan 2019 07:48:33 +0100 Subject: [PATCH] Removed then clauses, no need to test the test within the test --- public/test/core/redux/reducerTester.test.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/public/test/core/redux/reducerTester.test.ts b/public/test/core/redux/reducerTester.test.ts index 871feb7e848..63d163647fc 100644 --- a/public/test/core/redux/reducerTester.test.ts +++ b/public/test/core/redux/reducerTester.test.ts @@ -39,8 +39,7 @@ describe('reducerTester', () => { expect(() => { reducerTester() .givenReducer(mutatingReducer, initialState) - .whenActionIsDispatched(dummyAction('some string')) - .thenStateShouldEqual({ ...initialState, data: ['some string'] }); + .whenActionIsDispatched(dummyAction('some string')); }).toThrow(); }); }); @@ -50,8 +49,7 @@ describe('reducerTester', () => { expect(() => { reducerTester() .givenReducer(okReducer, initialState) - .whenActionIsDispatched(dummyAction('some string')) - .thenStateShouldEqual({ ...initialState, data: ['some string'] }); + .whenActionIsDispatched(dummyAction('some string')); }).not.toThrow(); }); });