Skip to content Skip to sidebar Skip to footer
Showing posts with the label Qunit

Best Way To Test Javascript Functions That Use Variables From A Closure?

So the problem I'm having is I have a function which uses a variable in a closure and when test… Read more Best Way To Test Javascript Functions That Use Variables From A Closure?

Extending Backbone.collection Prototype

Following on from this question, I'm trying to augment Backbone.Collection with some custom met… Read more Extending Backbone.collection Prototype

Testing For A Function That Contains Asynchronous Code

With qUnit, I understand how to use asyncTest() if you have asynchronous code within your tests, bu… Read more Testing For A Function That Contains Asynchronous Code

Why Attach To Window [edited]

I was looking over the code for qunit. My question is why would you want to attach the qunit object… Read more Why Attach To Window [edited]

While Unit Testing I Frequently Require To Test Internal (private) Logic, What Is The Best Practice For This?

I believe everyone encounters a case when there's necessity to test internal wiring of the clas… Read more While Unit Testing I Frequently Require To Test Internal (private) Logic, What Is The Best Practice For This?

Qunitjs-tests Don't Start: Phantomjs Timed Out, Possibly Due To A Missing Qunit Start() Call

I have set up my test environment as described here with QunitJS + PhantomJS + GruntJS: http://jord… Read more Qunitjs-tests Don't Start: Phantomjs Timed Out, Possibly Due To A Missing Qunit Start() Call