Docs (4.0.0)
Assertions

expect

Creates a new Assertion object, ready to evaluate the given value.

expect<T>(value: T, name?: string): Assertion<unknown>

Parameters

  • value — The value to be evaluated
  • name — An optional name for the assertion, used in error messages

Related