2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

Axios create url bug (#2290)

* Fix #2234 

* added spacing --eslint

* added test cases

* removed unexpected cases after updating the code
This commit is contained in:
DIO
2019-09-06 21:15:18 +05:30
committed by Felipe Martins
parent b9931e0a95
commit 89bd3abe9a
3 changed files with 14 additions and 3 deletions
-2
View File
@@ -32,13 +32,11 @@ describe('core::mergeConfig', function() {
it('should not inherit request options', function() {
var localDefaults = {
url: '__sample url__',
method: '__sample method__',
params: '__sample params__',
data: { foo: true }
};
var merged = mergeConfig(localDefaults, {});
expect(merged.url).toEqual(undefined);
expect(merged.method).toEqual(undefined);
expect(merged.params).toEqual(undefined);
expect(merged.data).toEqual(undefined);