Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IParameterMatcher<T>

Allows custom logic to verify that a function parameter has the expected value.

Type parameters

  • T

Hierarchy

  • IParameterMatcher

Index

Properties

Readonly expectedDisplayValue

expectedDisplayValue: string

A string representation of the expected value to be used in failure messages

Readonly isExpectedValue

isExpectedValue: MatchFunction<T>

function that takes the actual parameter value and returns true if it was the expected value

Optional Readonly parameterToString

parameterToString: undefined | ((value: T) => string)

Used to format a value into a string to display value of actual parameters passed in failure messages

Generated using TypeDoc