jeffcharles / nock-timeout-testcase

A testcase to demonstrate Nock's delayBody results in different behaviour than an actual http server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a repo to provide a test case to demonstrate that Nock's delayBody function results in different behaviour compared to running against an actual HTTP server compared to Nock.

To run the test case, run npm test. An exit code of 0 indicates that Nock behaves identically to an actual http server, 1 indicates that request running against an actual http server didn't fail as expected, and 2 indicates that request running against nock didn't fail as expected.

About

A testcase to demonstrate Nock's delayBody results in different behaviour than an actual http server


Languages

Language:JavaScript 100.0%