Jelajahi Sumber

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

Hugo Häggmark 6 tahun lalu
induk
melakukan
99b500c740
1 mengubah file dengan 2 tambahan dan 4 penghapusan
  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();
     });
   });