mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +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.status, 200);
|
||||||
test.equal(resp.statusText, 'OK');
|
test.equal(resp.statusText, 'OK');
|
||||||
test.done();
|
test.done();
|
||||||
|
})
|
||||||
|
.catch(function (error) {
|
||||||
|
test.ifError(error);
|
||||||
|
test.done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user