Jump to Content
MaddoxWhat Is MaddoxAPI DocsDiscussions
HomeWhat Is MaddoxAPI DocsChangelogDiscussions
What Is MaddoxAPI DocsDiscussionsLog InMaddox
API Docs
Log In

Scenarios

  • What Are Scenarios?
  • HttpRequestScenario
  • FromCallbackScenario
  • FromPromiseScenario
  • FromSynchronousScenario

Constants

  • IgnoreParam
  • EmptyResult
  • EmptyParameters

API

  • mockThisFunction
  • withEntryPoint
  • withInputParams
  • withTestFinisherFunction
  • shouldBeCalledWith
  • shouldAlwaysBeCalledWith
  • shouldAlwaysBeIgnored
  • doesReturn
  • doesAlwaysReturn
  • doesReturnWithPromise
  • doesAlwaysReturnWithPromise
  • doesReturnWithCallback
  • doesAlwaysReturnWithCallback
  • doesError
  • doesErrorWithPromise
  • doesErrorWithCallback
  • noDebug
  • test

HttpReqScenario API

  • withHttpRequest
  • resShouldBeCalledWith
  • resShouldAlwaysBeCalledWith
  • resShouldContainHeader
  • resShouldAlwaysBeIgnored
  • resDoesReturn
  • resDoesAlwaysReturn
  • resDoesReturnSelf

Compare

  • What is Maddox.compare
  • shouldEqual
  • shouldBeTruthy
  • shouldBeFalsy
  • shouldBeFalsey
  • equal
  • truthy
  • falsey
  • shouldBeUnreachable
  • shouldbeSubset
  • subset
Powered by 

withInputParams

withInputParams(inputParamsIn)

These are the input params into the function that you would like to test. The input params is an array representation of all the parameters.

  • inputParamsIn {Array} - Array of parameters. The first function parameter goes into index 0 and the nth parameter goes into index n.
  • returns {Scenario}
  • Table of Contents
    • withInputParams(inputParamsIn)