In my previous post I’ve looked into testing RxJs 4.x throttling.
Recently I’ve discovered that RxJs 5.x is out of beta now and decided to take a look at testing time-based operators in the released version.
As I already had an example to test throttling in RxJs 4.x I have used it as a base for my new test.
Testing the throttling
I’ve created a plunk to describe the solution.
The example above demonstrates how easy it is to test time-based operators such as throttleTime in RxJs 5.