2
0
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:
Justin Dhillon
2025-11-12 11:49:37 -08:00
committed by GitHub
parent f73474d02c
commit 4d06112452
11 changed files with 29 additions and 29 deletions
+5 -5
View File
@@ -168,12 +168,12 @@ describe('AxiosHeaders', function () {
headers.set('foo', 'bar=value1');
assert.strictEqual(headers.has('foo', (value, header, headers)=> {
assert.strictEqual(headers.has('foo', (value, header, headers) => {
assert.strictEqual(value, 'bar=value1');
assert.strictEqual(header, 'foo');
return true;
}), true);
assert.strictEqual(headers.has('foo', ()=> false), false);
assert.strictEqual(headers.has('foo', () => false), false);
});
it('should support string pattern', function () {
@@ -246,7 +246,7 @@ describe('AxiosHeaders', function () {
headers.set('foo', 'bar=value1');
headers.delete('foo', (value, header)=> {
headers.delete('foo', (value, header) => {
assert.strictEqual(value, 'bar=value1');
assert.strictEqual(header, 'foo');
return false;
@@ -254,7 +254,7 @@ describe('AxiosHeaders', function () {
assert.strictEqual(headers.has('foo'), true);
assert.strictEqual(headers.delete('foo', ()=> true), true);
assert.strictEqual(headers.delete('foo', () => true), true);
assert.strictEqual(headers.has('foo'), false);
});
@@ -277,7 +277,7 @@ describe('AxiosHeaders', function () {
});
});
describe('clear', ()=> {
describe('clear', () => {
it('should clear all headers', () => {
const headers = new AxiosHeaders({x: 1, y:2});