javascript - How to unit test instantiated object: qUnit/sonar/phantomJS -


using qunit unit test , sonar code coverage.

does know how test can cover instantiated object: given initialize object on different file

var search_view = new searchview({ el: $("#search_container") }); 

should test:

searchview = backbone.view.extend({     initialize: function(){         alert("alerts suck.");     } }); 

which on different file? , has own test.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -