Skip to main content

Questions tagged [qunit]

QUnit is a JavaScript unit testing framework, used by the jQuery project to test its code and plugins, but capable of testing any generic JavaScript (both client- and server side) code.

Filter by
Sorted by
Tagged with
6 votes
1 answer

Mocking dependencies when unit testing AngularJS services with QUnit

I'm trying to unit test an AngularJS service that is dependent on another service, using QUnit as my testing framework. The first test I'm writing is one to verify that my service calls another ...
Jeroen's user avatar
  • 1,441
4 votes
1 answer

Testing input validation and an AJAX request with Javascript and QUnit

I have a simple web page where the user enters the name and rank of a soldier and hits submit. If the input is invalid, an appropriate error message gets displayed. Otherwise, it adds the soldier to a ...
User319's user avatar
  • 1,132