method Assert.prototype.step
Assert.prototype.step(message: string): void

Records a named step. Use with Assert.prototype.verifySteps to assert that a sequence of steps occurred in the right order.

A step is not an assertion of its own: as in QUnit 3, only the Assert.prototype.verifySteps call that checks it counts towards Assert.prototype.expect.

Examples

Example 1

test("event order", (assert) => {
  assert.expect(1);
  assert.step("step one");
  assert.step("step two");
  assert.verifySteps(["step one", "step two"]);
});

Parameters

message: string

The step label to record.

Return Type

void

Throws

TypeError

If message is missing, empty, or not a string.

Usage

import { Assert } from ".";