Commit 99b500c7 by Hugo Häggmark

Removed then clauses, no need to test the test within the test

parent 6a84a85a
......@@ -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();
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment