2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

Correctly catch exception in http test (#1475)

This commit is contained in:
Martti Laine
2018-04-11 17:23:01 +02:00
committed by Emily Morehouse
parent ec97c686ef
commit 961ecd129c
+4
View File
@@ -243,6 +243,10 @@ module.exports = {
test.equal(resp.status, 200);
test.equal(resp.statusText, 'OK');
test.done();
})
.catch(function (error) {
test.ifError(error);
test.done();
});
});
},