Javascript unit tests using QUnit

I would like to recommend you few links which would be helpful for you to go ahead.

To know more about QUNIT and create you first script suing Qunit you can follow below link:

http://net.tutsplus.com/tutorials/javascript-ajax/how-to-test-your-javascript-code-with-qunit/

To Integrate JavaScript Unit testing into your website and enables to run JavaScript unit tests from Visual studio you can look into below open source tool.

http://chutzpah.codeplex.com/

Hope this would help you!!

Thanks!!