2
0
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:
Dmitriy Mozgovoy
2023-02-22 21:50:31 +02:00
committed by GitHub
parent d9ebf8fb3a
commit a3b246c9de
3 changed files with 38 additions and 26 deletions
+4
View File
@@ -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/);
});
});