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

Asserting That A Function Throws Exceptions With Qunit

I am new to Qunit and unit testing. I am trying to figure out what and how to test the following fu… Read more Asserting That A Function Throws Exceptions With Qunit

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

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?

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]

Avoid / Capture / Verify A Javascript Alert When Testing A Method That Displays One With Qunit

I'm just starting using Qunit and would like to know whether is there a way to capture/verify/o… Read more Avoid / Capture / Verify A Javascript Alert When Testing A Method That Displays One With Qunit