QUnit.assert

version added: 1.7.0.

Description

Namespace for QUnit assertion methods. This object is the prototype for the internal Assert class of which instances are passed as the argument to QUnit.test() callbacks.

This object contains QUnit’s built-in assertion methods, and may be extended by plugins to register additional assertion methods.

See assert.pushResult() for how to create a custom assertion.