mirror of
https://github.com/tenrok/axios.git
synced 2026-06-05 16:42:32 +03:00
Add OPTIONS-method as a shortcut
This commit is contained in:
@@ -3,6 +3,7 @@ describe('static api', function () {
|
||||
expect(typeof axios.request).toEqual('function');
|
||||
expect(typeof axios.get).toEqual('function');
|
||||
expect(typeof axios.head).toEqual('function');
|
||||
expect(typeof axios.options).toEqual('function');
|
||||
expect(typeof axios.delete).toEqual('function');
|
||||
expect(typeof axios.post).toEqual('function');
|
||||
expect(typeof axios.put).toEqual('function');
|
||||
@@ -42,6 +43,7 @@ describe('instance api', function () {
|
||||
it('should have request methods', function () {
|
||||
expect(typeof instance.request).toEqual('function');
|
||||
expect(typeof instance.get).toEqual('function');
|
||||
expect(typeof instance.options).toEqual('function');
|
||||
expect(typeof instance.head).toEqual('function');
|
||||
expect(typeof instance.delete).toEqual('function');
|
||||
expect(typeof instance.post).toEqual('function');
|
||||
|
||||
Reference in New Issue
Block a user