QUnit API Documentation

Category: Assert


deepEqual()

A deep recursive comparison assertion, working on primitive types, arrays, objects, regular expressions, dates and functions.

equal()

A non-strict comparison assertion, roughly equivalent to JUnit assertEquals.

notDeepEqual()

An inverted deep recursive comparison assertion, working on primitive types, arrays, objects, regular expressions, dates and functions.

notEqual()

A non-strict comparison assertion, checking for inequality.

notStrictEqual()

A non-strict comparison assertion, checking for inequality.

ok()

A boolean assertion, equivalent to CommonJS’s assert.ok() and JUnit’s assertTrue(). Passes if the first argument is truthy.

strictEqual()

A strict type and value comparison assertion.

throws()

Assertion to test if a callback throws an exception when run.

gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.