mirror of
https://github.com/tenrok/axios.git
synced 2026-06-14 18:42:33 +03:00
Adding isAxiosError flag to errors thrown by axios (#1419)
This commit is contained in:
committed by
Khaled Garbaya
parent
c0b40650d1
commit
b681e919c4
@@ -11,6 +11,7 @@ describe('core::enhanceError', function() {
|
||||
expect(error.code).toBe('ESOMETHING');
|
||||
expect(error.request).toBe(request);
|
||||
expect(error.response).toBe(response);
|
||||
expect(error.isAxiosError).toBe(true);
|
||||
});
|
||||
|
||||
it('should return error', function() {
|
||||
|
||||
Reference in New Issue
Block a user