2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-11 18:02:32 +03:00

Fixed & Imporoved AxiosHeaders class (#5224)

* Refactored AxiosHeaders class;

* Added support for instances of AxiosHeaders as a value for the headers option;

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
Dmitriy Mozgovoy
2022-11-07 21:11:42 +02:00
committed by GitHub
parent c0a723ab6c
commit ab77a40e1c
16 changed files with 321 additions and 159 deletions
+10
View File
@@ -83,4 +83,14 @@ describe('utils::merge', function () {
expect(d).toEqual({a: [1, 2, 3]});
expect(d.a).not.toBe(a);
});
it('should support caseless option', ()=> {
const a = {x: 1};
const b = {X: 2};
const merged = merge.call({caseless: true}, a, b);
expect(merged).toEqual({
x: 2
});
});
});