Request driven library for testing node.js HTTP servers via request.
npm install retest --save-dev
You may pass a
http.Server, function or string to
retest() - if the server is not listening for connections it will be bound to an ephemeral port so there is no need to keep track of ports.
var retest = ;var express = ;var app = ;app;;
A multipart request can be sent using the form-data module. Just use
retest.form() to create an instance and pass it as the body option, as you would any other object.
var retest = ;var test = ;var form = testform;// Append fields and files as you normally would.form;form;test;
The callback function is called with two arguments, the
response. The response body will be automatically parsed when possible based on the content type (current