@@ -307,9 +307,9 @@ describe('test functions', () => {
307
307
} ,
308
308
'(...args) {' ,
309
309
`
310
- console.log(args);
311
- return "333";
312
- `
310
+ console.log(args);
311
+ return "333";
312
+ `
313
313
] ,
314
314
[
315
315
func1 ,
@@ -328,69 +328,63 @@ describe('test functions', () => {
328
328
`
329
329
] ,
330
330
[
331
- ( ...args :any ) => console . log ( '555' ) ,
331
+ // eslint-disable-next-line unused-imports/no-unused-vars
332
+ ( ...args : any ) => console . log ( '555' ) ,
332
333
'(...args) => {' ,
333
334
' console.log("555")'
334
335
] ,
335
336
[
336
- ( ...args :any ) => {
337
+ ( ...args : any ) => {
337
338
console . log ( args )
338
339
return '666'
339
340
} ,
340
341
'(...args) => {' ,
341
342
` {
342
- console.log(args);
343
- return "666";
344
- }`
343
+ console.log(args);
344
+ return "666";
345
+ }`
345
346
] ,
346
347
[
348
+ // eslint-disable-next-line unused-imports/no-unused-vars
347
349
function ( a : number , b : number ) {
348
350
throw Error ( 'Be careful to use the function just as value in useState() hook' )
349
351
} ,
350
352
'(a, b) {' ,
351
353
`
352
- throw Error("Be careful to use the function just as value in useState() hook");
353
- `
354
+ throw Error("Be careful to use the function just as value in useState() hook");
355
+ `
354
356
] ,
355
357
[
356
- ( { prop1, prop2, ...other } :any ) => {
358
+ ( { prop1, prop2, ...other } : any ) => {
357
359
console . log ( prop1 , prop2 , other )
358
360
return '777'
359
361
} ,
360
- `({
361
- prop1,
362
- prop2,
363
- ...other
364
- }) => {` ,
362
+ '({ prop1, prop2, ...other }) => {' ,
365
363
` {
366
- console.log(prop1, prop2, other);
367
- return "777";
368
- }`
364
+ console.log(prop1, prop2, other);
365
+ return "777";
366
+ }`
369
367
] ,
370
368
[
371
369
{
372
- func : ( { prop1, prop2, ...other } :any ) => {
370
+ func : ( { prop1, prop2, ...other } : any ) => {
373
371
console . log ( prop1 , prop2 , other )
374
- return '777 '
372
+ return '888 '
375
373
}
376
374
} ,
377
- `({
378
- prop1,
379
- prop2,
380
- ...other
381
- }) => {` ,
375
+ '({ prop1, prop2, ...other }) => {' ,
382
376
` {
383
- console.log(prop1, prop2, other);
384
- return "777 ";
385
- }`
377
+ console.log(prop1, prop2, other);
378
+ return "888 ";
379
+ }`
386
380
] ,
387
381
[
388
382
// @ts -ignore
389
383
function ( e , n ) { return e + n } ,
390
384
'(e, n) {' ,
391
385
`
392
- return e + n;
393
- `
386
+ return e + n;
387
+ `
394
388
]
395
389
]
396
390
for ( const iteration of dataProvider ) {
@@ -418,7 +412,7 @@ describe('Expand function by click on dots', () => {
418
412
const { container, rerender } = render (
419
413
< JsonViewer
420
414
rootName = { false }
421
- value = { ( e :any ) => console . log ( 'it works' ) }
415
+ value = { ( e : any ) => console . log ( 'it works' ) }
422
416
defaultInspectDepth = { 0 }
423
417
/>
424
418
)
@@ -431,7 +425,7 @@ describe('Expand function by click on dots', () => {
431
425
rerender (
432
426
< JsonViewer
433
427
rootName = { false }
434
- value = { ( e :any ) => console . log ( 'it works' ) }
428
+ value = { ( e : any ) => console . log ( 'it works' ) }
435
429
defaultInspectDepth = { 0 }
436
430
/>
437
431
)
0 commit comments