Assertions:

  • async

    Instruct QUnit to wait for an asynchronous operation.

  • deepEqual

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

  • equal

    A non-strict comparison.

  • expect

    Specify how many assertions are expected to run within a test.

  • notDeepEqual

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

  • notEqual

    A non-strict comparison, checking for inequality.

  • notOk

    A boolean check. Passes if the first argument is falsy.

  • notPropEqual

    A strict comparison of an object's own properties, checking for inequality.

  • notStrictEqual

    A strict comparison, checking for inequality.

  • ok

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

  • propEqual

    A strict type and value comparison of an object's own properties.

  • pushResult

    Report the result of a custom assertion.

  • step

    A marker for progress in a given test.

  • strictEqual

    A strict type and value comparison.

  • throws

    Test if a callback throws an exception, and optionally compare the thrown error.

  • timeout

    Sets the length of time to wait for async operations before failing the test.

  • verifySteps

    A helper assertion to verify the order and number of steps in a test.