You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I tried to test some subjects in my project and encountered on problem (or feature?). I created a separated spec file for showing you my misunderstanding.
Test B works, because it's copied from docs. Test A (without scheduling using "schedule" function) doesn't work and tells me, that there is no emitted value. For me it's strange, because I call "next" method.
Mb I don't understand smth and it's a feature?
I will be glad any comments or description why it works like this
The text was updated successfully, but these errors were encountered:
It's very simple - for tests we use a special scheduler that "fakes" the time and the frames.
When you use one of the initialization methods provided by this library (like cold or hot) or when you use schedule method, the Subject is evaluated by this scheduler, hence integrated in the testing environment.
When you just use .next then the internal test scheduler is not aware of this information, so the test fails.
Hello!
I tried to test some subjects in my project and encountered on problem (or feature?). I created a separated spec file for showing you my misunderstanding.
Test B works, because it's copied from docs. Test A (without scheduling using "schedule" function) doesn't work and tells me, that there is no emitted value. For me it's strange, because I call "next" method.
Mb I don't understand smth and it's a feature?
I will be glad any comments or description why it works like this
The text was updated successfully, but these errors were encountered: