Usually with front end testing I simply stick to Behavioural Testing using Selenium Webdriver but this is an interesting look at Javascript unit testing, something that nowadays is more important with the use of frameworks such as KnockoutJs || AngularJs.