@@ -24,7 +24,7 @@ import FakeTimers from '@sinonjs/fake-timers'
2424
2525test ( 'Basic' , async t => {
2626 const MockConnection = connection . buildMockConnection ( {
27- onRequest ( params ) {
27+ onRequest ( _params ) {
2828 return {
2929 body : {
3030 responses : [ {
@@ -78,7 +78,7 @@ test('Multiple searches (inside async iterator)', t => {
7878 t . plan ( 4 )
7979
8080 const MockConnection = connection . buildMockConnection ( {
81- onRequest ( params ) {
81+ onRequest ( _params ) {
8282 return {
8383 body : {
8484 responses : [ {
@@ -161,7 +161,7 @@ test('Multiple searches (async iterator exits)', t => {
161161 t . plan ( 4 )
162162
163163 const MockConnection = connection . buildMockConnection ( {
164- onRequest ( params ) {
164+ onRequest ( _params ) {
165165 return {
166166 body : {
167167 responses : [ {
@@ -242,7 +242,7 @@ test('Multiple searches (async iterator exits)', t => {
242242
243243test ( 'Stop a msearch processor (promises)' , async t => {
244244 const MockConnection = connection . buildMockConnection ( {
245- onRequest ( params ) {
245+ onRequest ( _params ) {
246246 return { body : { } }
247247 }
248248 } )
@@ -272,7 +272,7 @@ test('Bad header', t => {
272272 t . plan ( 1 )
273273
274274 const MockConnection = connection . buildMockConnection ( {
275- onRequest ( params ) {
275+ onRequest ( _params ) {
276276 return { body : { } }
277277 }
278278 } )
@@ -297,7 +297,7 @@ test('Bad body', t => {
297297 t . plan ( 1 )
298298
299299 const MockConnection = connection . buildMockConnection ( {
300- onRequest ( params ) {
300+ onRequest ( _params ) {
301301 return { body : { } }
302302 }
303303 } )
@@ -321,7 +321,7 @@ test('Bad body', t => {
321321test ( 'Retry on 429' , async t => {
322322 let count = 0
323323 const MockConnection = connection . buildMockConnection ( {
324- onRequest ( params ) {
324+ onRequest ( _params ) {
325325 if ( count ++ === 0 ) {
326326 return {
327327 body : {
@@ -384,7 +384,7 @@ test('Retry on 429', async t => {
384384
385385test ( 'Single search errors' , async t => {
386386 const MockConnection = connection . buildMockConnection ( {
387- onRequest ( params ) {
387+ onRequest ( _params ) {
388388 return {
389389 body : {
390390 responses : [ {
@@ -419,7 +419,7 @@ test('Entire msearch fails', t => {
419419 t . plan ( 2 )
420420
421421 const MockConnection = connection . buildMockConnection ( {
422- onRequest ( params ) {
422+ onRequest ( _params ) {
423423 return {
424424 statusCode : 500 ,
425425 body : {
@@ -454,7 +454,7 @@ test('Resolves the msearch helper', t => {
454454 t . plan ( 1 )
455455
456456 const MockConnection = connection . buildMockConnection ( {
457- onRequest ( params ) {
457+ onRequest ( _params ) {
458458 return { body : { } }
459459 }
460460 } )
@@ -470,17 +470,17 @@ test('Resolves the msearch helper', t => {
470470
471471 m . then (
472472 ( ) => t . pass ( 'called' ) ,
473- e => t . fail ( 'Should not fail' )
473+ _e => t . fail ( 'Should not fail' )
474474 )
475475
476- m . catch ( e => t . fail ( 'Should not fail' ) )
476+ m . catch ( _e => t . fail ( 'Should not fail' ) )
477477} )
478478
479479test ( 'Stop the msearch helper with an error' , t => {
480480 t . plan ( 3 )
481481
482482 const MockConnection = connection . buildMockConnection ( {
483- onRequest ( params ) {
483+ onRequest ( _params ) {
484484 return { body : { } }
485485 }
486486 } )
@@ -511,7 +511,7 @@ test('Multiple searches (concurrency = 1)', t => {
511511 t . plan ( 4 )
512512
513513 const MockConnection = connection . buildMockConnection ( {
514- onRequest ( params ) {
514+ onRequest ( _params ) {
515515 return {
516516 body : {
517517 responses : [ {
@@ -587,7 +587,7 @@ test('Flush interval', t => {
587587 t . teardown ( ( ) => clock . uninstall ( ) )
588588
589589 const MockConnection = connection . buildMockConnection ( {
590- onRequest ( params ) {
590+ onRequest ( _params ) {
591591 return {
592592 body : {
593593 responses : [ {
@@ -640,7 +640,7 @@ test('Flush interval - early stop', t => {
640640 t . plan ( 2 )
641641
642642 const MockConnection = connection . buildMockConnection ( {
643- onRequest ( params ) {
643+ onRequest ( _params ) {
644644 return {
645645 body : {
646646 responses : [ {
@@ -684,7 +684,7 @@ test('Stop should resolve the helper', t => {
684684 t . plan ( 1 )
685685
686686 const MockConnection = connection . buildMockConnection ( {
687- onRequest ( params ) {
687+ onRequest ( _params ) {
688688 return {
689689 body : {
690690 responses : [ ]
@@ -709,7 +709,7 @@ test('Stop should resolve the helper (error)', t => {
709709 t . plan ( 3 )
710710
711711 const MockConnection = connection . buildMockConnection ( {
712- onRequest ( params ) {
712+ onRequest ( _params ) {
713713 return {
714714 body : {
715715 responses : [ ]
0 commit comments