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:
committed by
Emily Morehouse
parent
ec97c686ef
commit
961ecd129c
@@ -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();
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user