mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
style: turn '()=>' into '() =>' (#6324)
Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
@@ -101,7 +101,7 @@ describe('core::mergeConfig', function() {
|
||||
expect(merged.nestedConfig.propertyOnRequestConfig).toEqual(true);
|
||||
});
|
||||
|
||||
describe('headers', ()=> {
|
||||
describe('headers', () => {
|
||||
it('should allow merging with AxiosHeaders instances', () => {
|
||||
const merged = mergeConfig({
|
||||
headers: new AxiosHeaders({
|
||||
|
||||
@@ -133,7 +133,7 @@ describe('headers', function () {
|
||||
});
|
||||
});
|
||||
|
||||
it('should allow an AxiosHeaders instance to be used as the value of the headers option', async ()=> {
|
||||
it('should allow an AxiosHeaders instance to be used as the value of the headers option', async () => {
|
||||
const instance = axios.create({
|
||||
headers: new AxiosHeaders({
|
||||
xFoo: 'foo',
|
||||
|
||||
@@ -84,7 +84,7 @@ describe('utils::merge', function () {
|
||||
expect(d.a).not.toBe(a);
|
||||
});
|
||||
|
||||
it('should support caseless option', ()=> {
|
||||
it('should support caseless option', () => {
|
||||
const a = {x: 1};
|
||||
const b = {X: 2};
|
||||
const merged = merge.call({caseless: true}, a, b);
|
||||
|
||||
Reference in New Issue
Block a user