@@ -101,11 +101,11 @@ describe('Batch', () => {
101101 const lastCall = fetchMock . mock . calls [ 0 ] ;
102102 expect ( lastCall ) . toBeDefined ( ) ;
103103
104- //@ts -ignore
104+ //@ts -expect-error
105105 const hasIdempotencyKey = lastCall [ 1 ] ?. headers . has ( 'Idempotency-Key' ) ;
106106 expect ( hasIdempotencyKey ) . toBeFalsy ( ) ;
107107
108- //@ts -ignore
108+ //@ts -expect-error
109109 const usedIdempotencyKey = lastCall [ 1 ] ?. headers . get ( 'Idempotency-Key' ) ;
110110 expect ( usedIdempotencyKey ) . toBeNull ( ) ;
111111 } ) ;
@@ -145,11 +145,11 @@ describe('Batch', () => {
145145 // In the mock, headers is an object with key-value pairs
146146 expect ( fetchMock . mock . calls [ 0 ] [ 1 ] ?. headers ) . toBeDefined ( ) ;
147147
148- //@ts -ignore
148+ //@ts -expect-error
149149 const hasIdempotencyKey = lastCall [ 1 ] ?. headers . has ( 'Idempotency-Key' ) ;
150150 expect ( hasIdempotencyKey ) . toBeTruthy ( ) ;
151151
152- //@ts -ignore
152+ //@ts -expect-error
153153 const usedIdempotencyKey = lastCall [ 1 ] ?. headers . get ( 'Idempotency-Key' ) ;
154154 expect ( usedIdempotencyKey ) . toBe ( idempotencyKey ) ;
155155 } ) ;
@@ -247,11 +247,11 @@ describe('Batch', () => {
247247 const lastCall = fetchMock . mock . calls [ 0 ] ;
248248 expect ( lastCall ) . toBeDefined ( ) ;
249249
250- //@ts -ignore
250+ //@ts -expect-error
251251 const hasIdempotencyKey = lastCall [ 1 ] ?. headers . has ( 'Idempotency-Key' ) ;
252252 expect ( hasIdempotencyKey ) . toBeFalsy ( ) ;
253253
254- //@ts -ignore
254+ //@ts -expect-error
255255 const usedIdempotencyKey = lastCall [ 1 ] ?. headers . get ( 'Idempotency-Key' ) ;
256256 expect ( usedIdempotencyKey ) . toBeNull ( ) ;
257257 } ) ;
@@ -291,11 +291,11 @@ describe('Batch', () => {
291291 // In the mock, headers is an object with key-value pairs
292292 expect ( fetchMock . mock . calls [ 0 ] [ 1 ] ?. headers ) . toBeDefined ( ) ;
293293
294- //@ts -ignore
294+ //@ts -expect-error
295295 const hasIdempotencyKey = lastCall [ 1 ] ?. headers . has ( 'Idempotency-Key' ) ;
296296 expect ( hasIdempotencyKey ) . toBeTruthy ( ) ;
297297
298- //@ts -ignore
298+ //@ts -expect-error
299299 const usedIdempotencyKey = lastCall [ 1 ] ?. headers . get ( 'Idempotency-Key' ) ;
300300 expect ( usedIdempotencyKey ) . toBe ( idempotencyKey ) ;
301301 } ) ;
0 commit comments