From 7e71f8dc3bea5c561b326657027af5e217c336b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Mart=C3=ADn?= Date: Thu, 3 May 2018 18:32:15 +0200 Subject: [PATCH] supporting multipart requests --- test/support/assert.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/support/assert.js b/test/support/assert.js index 47c2ae51..3541f278 100644 --- a/test/support/assert.js +++ b/test/support/assert.js @@ -48,6 +48,10 @@ assert.response = function(server, req, res, callback) { requestParams.body = req.body || req.data; } + if (req.formData) { + requestParams.formData = req.formData; + } + debug('Request params', requestParams); request(requestParams, function assert$response$requestHandler(error, response, body) { debug('Request response', error);