title: How to test JavaScript?
body: <p>Although been coding JS for a while I never really focused on formal testing any more then usual clicking around in hope that something will break. Now I would like to see how this should be done properly and wonder how testing is performed while coding JavaScript web app. As I understand, in a nutshell, test are written for every method and return values asserted. </p>
  
  <p>Now, how this fits into JavaScript development where JS interacts with DOM, JS animates things around, calculates distances based on browser window and so on and on. How would I test for possible problems other then click around till something breaks? In addition multiple browser and all this got me really confused.</p>
  
  <p>My web app uses module pattern, is coded in strict mode, uses jQuery and bunch of plugins. Clicking till breaks approach works fine so far but I'm sure there is better way and if someone could give me an idea how this should be done that would be much appreciated.</p>