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

How Can I Use Html Fixtures With Karma Test Runner Using Qunit?

I'm playing with Karma test runner (http://karma-runner.github.io/0.8/index.html) using qunit (… Read more How Can I Use Html Fixtures With Karma Test Runner Using Qunit?

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

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?

Trouble Running Qunit Tests With Static Server Using Grunt

Running the tests via a web browser works fine, but using grunt gives me errors. I struggle to unde… Read more Trouble Running Qunit Tests With Static Server Using Grunt

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

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?