mirror of
https://github.com/tenrok/axios.git
synced 2026-06-08 17:22:34 +03:00
Fix/remove url required (#4426)
* Removed error when url is null as this breaks current use cases for alot of projects * Removed associated tests that check for the for url to not be empty
This commit is contained in:
@@ -7,24 +7,6 @@ describe('requests', function () {
|
||||
jasmine.Ajax.uninstall();
|
||||
});
|
||||
|
||||
it('should throw error when missing url', function (done) {
|
||||
expect(() => axios()).toThrowError(/Provided config url is not valid/);
|
||||
done();
|
||||
|
||||
expect(() => axios('')).toThrowError(/Provided config url is not valid/);
|
||||
done();
|
||||
|
||||
expect(() => axios({
|
||||
url: undefined,
|
||||
})).toThrowError(/Provided config url is not valid/);
|
||||
done();
|
||||
|
||||
expect(() => axios({
|
||||
method: 'POST',
|
||||
})).toThrowError(/Provided config url is not valid/);
|
||||
done();
|
||||
});
|
||||
|
||||
it('should treat single string arg as url', function (done) {
|
||||
axios('/foo');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user