async()
Instruct QUnit to wait for an asynchronous operation.
Instruct QUnit to wait for an asynchronous operation.
A deep recursive comparison, working on primitive types, arrays, objects, regular expressions, dates and functions.
A non-strict comparison, roughly equivalent to JUnit’s assertEquals.
Specify how many assertions are expected to run within a test.
QUnit is a powerful, easy-to-use JavaScript unit test suite. If you're new to QUnit or even just new to unit testing, you might want to check out the Introduction to JavaScript Unit Testing. There's also a QUnit Cookbook on the main site. To get started, use the search at the top of the page, view … Continue reading
An inverted deep recursive comparison, working on primitive types, arrays, objects, regular expressions, dates and functions.
A non-strict comparison, checking for inequality.
A boolean check, inverse of ok() and CommonJS’s assert.ok(), and equivalent to JUnit’s assertFalse(). Passes if the first argument is falsy.
A strict comparison of an object’s own properties, checking for inequality.
A strict comparison, checking for inequality.
A boolean check, equivalent to CommonJS’s assert.ok() and JUnit’s assertTrue(). Passes if the first argument is truthy.
A strict type and value comparison of an object’s own properties.
Report the result of a custom assertion
Namespace for QUnit assertions
Register a callback to fire whenever the test suite begins.
Configuration for QUnit
Register a callback to fire whenever the test suite ends.
Advanced and extensible data dumping for JavaScript
Copy the properties defined by the mixin object into the target object
Register a callback to fire whenever an assertion completes.
Group related tests under a single label.
Register a callback to fire whenever a module ends.
Register a callback to fire whenever a module begins.
Adds a test to exclusively run, preventing all other tests from running.
DEPRECATED: Report the result of a custom assertion
Adds a test like object to be skipped
Returns a single line string representing the stacktrace (call stack)
Description: QUnit.start() must be used to start a test run that has QUnit.config.autostart set to false. This method was previously used to control async tests on text contexts along with QUnit.stop. For asynchronous tests, use assert.async instead. When your async test has multiple exit points, call QUnit.start() for the corresponding number of QUnit.stop() increments. Example: … Continue reading
Add a test to run.
Register a callback to fire whenever a test ends.
Register a callback to fire whenever a test begins.
A strict type and value comparison.
Test if a callback throws an exception, and optionally compare the thrown error.