From e5beab045c6bb7092ee264a6d7cabbb9936e05b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Sat, 8 Apr 2017 12:44:41 +0200 Subject: [PATCH] Adding test checking the request in axios response is the last in a redirect --- test/unit/adapters/http.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/adapters/http.js b/test/unit/adapters/http.js index 131bce0..00416aa 100644 --- a/test/unit/adapters/http.js +++ b/test/unit/adapters/http.js @@ -83,6 +83,7 @@ module.exports = { }).listen(4444, function () { axios.get('http://localhost:4444/one').then(function (res) { test.equal(res.data, str); + test.equal(res.request.path, '/two'); test.done(); }); });