mirror of
https://github.com/tenrok/axios.git
synced 2026-06-08 17:22:34 +03:00
fix(http): fixed regression bug when handling synchronous errors inside the adapter; (#5564)
This commit is contained in:
@@ -2099,4 +2099,8 @@ describe('supports http with nodejs', function () {
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
it('should properly handle synchronous errors inside the adapter', function () {
|
||||
return assert.rejects(() => axios.get('http://192.168.0.285'), /Invalid URL/);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user