Skip to content

How to test empty logic reducers designed for navigation only (like NavigationSplitView) ? #2964

Answered by mbrandonw
Alexminator99 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Alexminator99, you can test this exactly as you test any other kind of feature. You construct a TestStore focused on the SettingsFeature domain, send it actions, and assert how state changes.

However, I wouldn't say there is all that much to test in this reducer right now. It simply composes two other features together and doesn't layer on any additional logic. So you might want to wait until there is some actual integration logic in SettingsFeature that coordinates things between the hardware and clover features.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Alexminator99
Comment options

Answer selected by Alexminator99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants