Javascript testing

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

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