mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
Adding error handling when missing url (#3791)
* Fixing error message when missing url * Fixing missing url * Adding missing url case * Update Axios.js * Update requests.spec.js * Update api.spec.js * Update api.spec.js * Update api.spec.js Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
committed by
GitHub
parent
99648153ce
commit
95792908f0
@@ -11,7 +11,7 @@ describe('static api', function () {
|
||||
});
|
||||
|
||||
it('should have promise method helpers', function () {
|
||||
var promise = axios();
|
||||
var promise = axios('/test');
|
||||
|
||||
expect(typeof promise.then).toEqual('function');
|
||||
expect(typeof promise.catch).toEqual('function');
|
||||
|
||||
Reference in New Issue
Block a user