Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Chris911/mocha-http-detect
/ functions
Functions
11 in github.com/Chris911/mocha-http-detect
⨍
Functions
11
◇
Types & classes
0
↓ 5 callers
Function
indent
* Returns indent for pretty printing. * @param {integer} size - indent size in spaces * @return {string} the indent string
src/index.js:15
↓ 3 callers
Function
done
(ctx)
src/index.js:61
↓ 3 callers
Function
mocha
(args)
test/utils/runner.js:42
↓ 1 callers
Function
getHostname
* Get the hostname from an HTTP options object. * Supports multiple types of options. * @param {object} httpOptions * @return {string} the hostnam
src/index.js:91
↓ 1 callers
Function
getHref
* Get the href from an HTTP options objet. * Supports multiple types of options. * @param {object} httpOptions * @return {string} the hostname or
src/index.js:108
↓ 1 callers
Function
patchHttpClient
* Patch Node's HTTP client to record external HTTP calls. * - All hostnames are stored in `hostname` with their count for the whole * test sui
src/index.js:127
↓ 1 callers
Function
patchMocha
* Patch mocha to display recording requests during individual tests and at * the end of the test suite.
src/index.js:57
↓ 1 callers
Function
printHostnames
* Print requested hostnames summary.
src/index.js:39
↓ 1 callers
Function
printTestRequest
* Prints full requests URL seen in test.
src/index.js:28
↓ 1 callers
Function
runMocha
(args, fn)
test/utils/runner.js:6
Function
patchedHttpClient
(options, done)
src/index.js:130