chai-http
- Version 5.1.2
- Published
- 37.4 kB
- 7 dependencies
- MIT license
Install
npm i chai-httpyarn add chai-httppnpm add chai-httpOverview
Extend Chai Assertion library with tests for http apis
Index
Variables
Functions
Namespaces
Variables
variable request
const request: Chai.ChaiHttpRequest;Functions
function chaiHttp
chaiHttp: (chai: any, utils: any) => void;Namespaces
namespace global
namespace global {}namespace global.Chai
namespace global.Chai {}interface Assertion
interface Assertion {}property headers
headers: Assertion;property html
html: Assertion;property json
json: Assertion;property redirect
redirect: Assertion;property text
text: Assertion;method charset
charset: (charset: string) => Assertion;method cookie
cookie: (key: string, value?: string) => Assertion;method header
header: (key: string, value?: string | RegExp) => Assertion;method param
param: (key: string, value?: string) => Assertion;method redirectTo
redirectTo: (location: string | RegExp) => Assertion;method status
status: (code: number) => Assertion;method statusCode
statusCode: (code: number) => Assertion;interface ChaiHttpRequest
interface ChaiHttpRequest {}interface ChaiStatic
interface ChaiStatic {}property request
request: ChaiHttpRequest;interface TypeComparison
interface TypeComparison {}property ip
ip: Assertion;namespace global.ChaiHttp
namespace global.ChaiHttp {}Package Files (1)
Dependencies (7)
Dev Dependencies (13)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/chai-http.
- Markdown[](https://www.jsdocs.io/package/chai-http)
- HTML<a href="https://www.jsdocs.io/package/chai-http"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3423 ms. - Missing or incorrect documentation? Open an issue for this package.
