Skip to content

Testing private rxMethods in SignalStore #4523

Answered by rainerhahnekamp
MotassemJa asked this question in Q&A
Discussion options

You must be logged in to vote

Every private method has an impact on the outside/public. In your case, you want to test that the error state is updated.

Provide a test double for Service, let it throw an error, and verify that the state got the expected change.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@MotassemJa
Comment options

@rainerhahnekamp
Comment options

Answer selected by MotassemJa
@MotassemJa
Comment options

@MotassemJa
Comment options

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