method Assert.prototype.verifySteps
Assert.prototype.verifySteps(
steps: string[],
message?: string
): void

Asserts that the steps recorded via Assert.prototype.step match the given array, then clears the recorded steps.

Examples

Example 1

test("lifecycle order", (assert) => {
  assert.step("init");
  assert.step("run");
  assert.verifySteps(["init", "run"]);
});

Parameters

steps: string[]

Expected array of step labels in order.

optional
message: string = Verify steps failed!

Optional failure message.

Return Type

void

Usage

import { Assert } from ".";