Commit Graph
5 Commits
Author SHA1 Message Date
David Lechner 7c0de33cfc test: drop | END
END already matches AnyAction so doesn't need to be explicitly added.
2022-03-11 16:11:22 -06:00
David Lechner 31fb3b9e4c test: drop state from AsyncSaga constructor params
This uses the real rootReducer to populate the initial state in the test
AsyncSaga. This way we don't have to populate default values. Since it
isn't used often, we can omit the parameter and just call the updateState()
method after creating the object if modifications are needed.
2022-03-11 16:04:09 -06:00
David Lechner 7b08d8a7bf test: drop RecursivePartial type
There is an existing type we can use instead.
2022-03-11 15:42:42 -06:00
David Lechner b37209683b test: extend testRender to return spy on dispatch 2022-03-10 02:00:14 -06:00
David Lechner 6afee4b6d6 test: add testRender()
This adds a testRender() helper function to simplify UI tests. Instead
of mocking the redux store, we use the real thing.
2022-03-09 17:24:46 -06:00