Javascript testing

Javascript testing
0.0 0

#1

Is it possible to write a unit test for a function that only has side effects and no return value?


#2

Sure. You just have to do your expects on the side effects.