concept Mocha in category rxjs
appears as: Mocha

This is an excerpt from Manning's book RxJS in Action.
The second parameter is very interesting (as a functional programmer, you’ll particularly appreciate this). Mocha also has the ability to detect if global variables “leak” during a single test. A leaked variable is global to the entire test suite with a lifespan that exceeds the test that created it. You may want to leak variables in order to share them with another test, but more often than not, that could cause a programmatic error. For instance, can you spot the leak in this function?