Options
All
  • Public
  • Public/Protected
  • All
Menu

External module MockRuleData

Index

Type aliases

CompletionCheckerBuilder

CompletionCheckerBuilder: function

Type declaration

CompletionCheckerData

CompletionCheckerData: AlwaysData | OnceData | TwiceData | ThriceData | TimesData

CompletionCheckerDataLookup

CompletionCheckerDataLookup: object

Type declaration

CompletionCheckerType

CompletionCheckerType: "always" | "once" | "twice" | "thrice" | "times"

HandlerBuilder

HandlerBuilder: function

Type declaration

HandlerData

HandlerDataLookup

HandlerDataLookup: object

Type declaration

HandlerType

HandlerType: "simple" | "callback" | "passthrough"

MatcherBuilder

MatcherBuilder: function

Type declaration

MatcherData

MatcherDataLookup

MatcherDataLookup: object

Type declaration

MatcherType

MatcherType: "simple" | "wildcard" | "header" | "form-data"

Functions

buildCompletionChecker

buildHandler

buildMatcher

buildMatchers

checkTimes

  • checkTimes(n: number): function

combineMatchers

explainUntil

  • explainUntil(requests: __type[], n: number, name: string): string

withExplanation

  • withExplanation<T>(functionToExplain: T, explainer: function): T & RuleExplainable

Object literals

Const completionCheckerBuilders

completionCheckerBuilders: object

always

once

thrice

times

twice

Const handlerBuilders

handlerBuilders: object

callback

passthrough

simple

  • Parameters

    • __namedParameters: object
      • data: undefined | string
      • headers: undefined | OutgoingHttpHeaders
      • status: number

    Returns RequestHandler

Const matcherBuilders

matcherBuilders: object

form-data

header

simple

wildcard

Generated using TypeDoc