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:
@@ -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});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user