Function testRequiredBodyValues

  • Tests required values in a request body

    Parameters

    • requiredValuePaths: string[]

      strings for the paths of required values within a body. Checks these are required one by one

    • body: object

      object for an object to be added to an express request

    • validationChain: any[]

      array for an express-validator validation chain to check against a request body

    Returns Promise<void>

Generated using TypeDoc