Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IFunctionWithParametersVerification<P, T, U, C>

Type parameters

Hierarchy

Index

Properties

functionName

functionName: FunctionName<T, C, U>

Optional parameterMatchers

parameterMatchers: (((passedValue: T) => boolean) | IParameterMatcher<any>)[]

strictCallCount

strictCallCount: boolean

type

type: U

Methods

getMock

withParameters

  • Checks the parameters in a non-strict equality way. defaults to the toEqual() matcher Equivalent to expected == actual

    Expected parameter values can be passed that uses the default matcher (toEqual) Other matchers, a comparison function or a custom IParameterMatcher can also be passed

    If your function accepts functions as parameters an IParameterMatcher must be used

    Note: if a matcher function ((value: T) => true) no information will be provided about what value the parameter was expected to be in a test failure message. To provide this expected value string implement IParameterMatcher instead

    Parameters

    Returns IStrictFunctionVerification<T, U, C>

withParametersEqualTo

  • Checks the parameters in a strict euqlity way. defaults to the toBe() matcher Equivalent to expected == actual

    Expected parameter values can be passed that uses the default matcher (toBe) Other matchers, a comparison function or a custom IParameterMatcher can also be passed

    If your function accepts functions as parameters an IParameterMatcher must be used

    Note: if a matcher function ((value: T) => true) no information will be provided about what value the parameter was expected to be in a test failure message. To provide this expected value string implement IParameterMatcher instead

    Parameters

    Returns IStrictFunctionVerification<T, U, C>

Generated using TypeDoc