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

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

asp.net - Configuring WCF Services in Code WCF 4.5 -