Hi there, I also started observable unit testing with this blog.
At first it seems pretty easy, but marbles can get very tricky when the use case is more advanced..
I recommend to use HiRez's observerSpy.. github.com/hirezio/observer-spy
You can then just test the outcome, without setting up the marbles :)
To keep track of what I learn everyday, I will be posting links to share knowledge with other knowledge seekers :). These posts include stuff I learn while programming in private or at the office.
Top comments (2)
Hi there, I also started observable unit testing with this blog.
At first it seems pretty easy, but marbles can get very tricky when the use case is more advanced..
I recommend to use HiRez's observerSpy..
github.com/hirezio/observer-spy
You can then just test the outcome, without setting up the marbles :)
Hey Tin,
Thanks so much, looks interesting. I'll look into it :)