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 -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -