2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-14 18:42:33 +03:00

Fixing custom config options (#2207)

- fixes #2203
This commit is contained in:
Rafael Renan Pacheco
2019-09-06 21:40:04 -03:00
committed by Felipe Martins
parent e50a08b2c3
commit a11cdf4683
2 changed files with 36 additions and 9 deletions
+5
View File
@@ -64,4 +64,9 @@ describe('core::mergeConfig', function() {
var merged = mergeConfig(defaults, { timeout: 123 });
expect(merged.timeout).toEqual(123);
});
it('should allow setting custom options', function() {
var merged = mergeConfig(defaults, { foo: 'bar' });
expect(merged.foo).toEqual('bar');
});
});