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
Post a Comment