mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
Adding test checking the request in axios response is the last in a redirect
This commit is contained in:
@@ -83,6 +83,7 @@ module.exports = {
|
|||||||
}).listen(4444, function () {
|
}).listen(4444, function () {
|
||||||
axios.get('http://localhost:4444/one').then(function (res) {
|
axios.get('http://localhost:4444/one').then(function (res) {
|
||||||
test.equal(res.data, str);
|
test.equal(res.data, str);
|
||||||
|
test.equal(res.request.path, '/two');
|
||||||
test.done();
|
test.done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user