浏览代码

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

Hugo Häggmark 6 年之前
父节点
当前提交
99b500c740
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      public/test/core/redux/reducerTester.test.ts

+ 2 - 4
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();
     });
   });