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.

Examples

Example 1

test("event order", (assert) => {
  assert.expect(3);
  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

Usage

import { Assert } from ".";