mirror of
https://github.com/tenrok/axios.git
synced 2026-06-11 18:02:32 +03:00
Adding cancellation support
This commit is contained in:
@@ -11,7 +11,14 @@ describe('instance', function () {
|
||||
var instance = axios.create();
|
||||
|
||||
for (var prop in axios) {
|
||||
if (['Axios', 'create', 'all', 'spread', 'default'].indexOf(prop) > -1) {
|
||||
if ([
|
||||
'Axios',
|
||||
'create',
|
||||
'Cancel',
|
||||
'CancelToken',
|
||||
'all',
|
||||
'spread',
|
||||
'default'].indexOf(prop) > -1) {
|
||||
continue;
|
||||
}
|
||||
expect(typeof instance[prop]).toBe(typeof axios[prop]);
|
||||
|
||||
Reference in New Issue
Block a user