1+ /* eslint-disable @typescript-eslint/no-empty-function */
2+
13// utils
24jest . mock ( '../../src/utils' , ( ) => ( {
35 ...jest . requireActual ( '../../src/utils' ) ,
@@ -113,7 +115,7 @@ describe('default option', () => {
113115describe ( 'context missing option' , ( ) => {
114116 test ( 'not specified missing handler' , ( ) => {
115117 const mockWarn = warn as jest . MockedFunction < typeof warn >
116- mockWarn . mockImplementation ( ( ) => { } ) // eslint-disable-line @typescript-eslint/no-empty-function
118+ mockWarn . mockImplementation ( ( ) => { } )
117119
118120 const ctx = context ( {
119121 locale : 'en' ,
@@ -130,7 +132,7 @@ describe('context missing option', () => {
130132
131133 test ( 'specified missing handler' , ( ) => {
132134 const mockWarn = warn as jest . MockedFunction < typeof warn >
133- mockWarn . mockImplementation ( ( ) => { } ) // eslint-disable-line @typescript-eslint/no-empty-function
135+ mockWarn . mockImplementation ( ( ) => { } )
134136
135137 const ctx = context ( {
136138 locale : 'en' ,
@@ -151,7 +153,7 @@ describe('context missing option', () => {
151153describe ( 'context missingWarn option' , ( ) => {
152154 test ( 'false' , ( ) => {
153155 const mockWarn = warn as jest . MockedFunction < typeof warn >
154- mockWarn . mockImplementation ( ( ) => { } ) // eslint-disable-line @typescript-eslint/no-empty-function
156+ mockWarn . mockImplementation ( ( ) => { } )
155157
156158 const ctx = context ( {
157159 locale : 'en' ,
@@ -168,7 +170,7 @@ describe('context missingWarn option', () => {
168170
169171 test ( 'regex' , ( ) => {
170172 const mockWarn = warn as jest . MockedFunction < typeof warn >
171- mockWarn . mockImplementation ( ( ) => { } ) // eslint-disable-line @typescript-eslint/no-empty-function
173+ mockWarn . mockImplementation ( ( ) => { } )
172174
173175 const ctx = context ( {
174176 locale : 'en' ,
@@ -189,7 +191,7 @@ describe('context missingWarn option', () => {
189191
190192 test ( 'missingWarn option' , ( ) => {
191193 const mockWarn = warn as jest . MockedFunction < typeof warn >
192- mockWarn . mockImplementation ( ( ) => { } ) // eslint-disable-line @typescript-eslint/no-empty-function
194+ mockWarn . mockImplementation ( ( ) => { } )
193195
194196 const ctx = context ( {
195197 locale : 'en' ,
@@ -207,7 +209,7 @@ describe('context missingWarn option', () => {
207209describe ( 'context fallbackWarn option' , ( ) => {
208210 test ( 'not specify fallbackLocale' , ( ) => {
209211 const mockWarn = warn as jest . MockedFunction < typeof warn >
210- mockWarn . mockImplementation ( ( ) => { } ) // eslint-disable-line @typescript-eslint/no-empty-function
212+ mockWarn . mockImplementation ( ( ) => { } )
211213
212214 const ctx = context ( {
213215 locale : 'en' ,
@@ -223,7 +225,7 @@ describe('context fallbackWarn option', () => {
223225
224226 test ( 'specify fallbackLocale' , ( ) => {
225227 const mockWarn = warn as jest . MockedFunction < typeof warn >
226- mockWarn . mockImplementation ( ( ) => { } ) // eslint-disable-line @typescript-eslint/no-empty-function
228+ mockWarn . mockImplementation ( ( ) => { } )
227229
228230 const ctx = context ( {
229231 locale : 'en' ,
@@ -246,7 +248,7 @@ describe('context fallbackWarn option', () => {
246248
247249 test ( 'not found fallback message' , ( ) => {
248250 const mockWarn = warn as jest . MockedFunction < typeof warn >
249- mockWarn . mockImplementation ( ( ) => { } ) // eslint-disable-line @typescript-eslint/no-empty-function
251+ mockWarn . mockImplementation ( ( ) => { } )
250252
251253 const ctx = context ( {
252254 locale : 'en' ,
@@ -270,7 +272,7 @@ describe('context fallbackWarn option', () => {
270272
271273 test ( 'context option: false' , ( ) => {
272274 const mockWarn = warn as jest . MockedFunction < typeof warn >
273- mockWarn . mockImplementation ( ( ) => { } ) // eslint-disable-line @typescript-eslint/no-empty-function
275+ mockWarn . mockImplementation ( ( ) => { } )
274276
275277 const ctx = context ( {
276278 locale : 'en' ,
@@ -289,7 +291,7 @@ describe('context fallbackWarn option', () => {
289291
290292 test ( 'context option: regex' , ( ) => {
291293 const mockWarn = warn as jest . MockedFunction < typeof warn >
292- mockWarn . mockImplementation ( ( ) => { } ) // eslint-disable-line @typescript-eslint/no-empty-function
294+ mockWarn . mockImplementation ( ( ) => { } )
293295
294296 const ctx = context ( {
295297 locale : 'en' ,
@@ -308,7 +310,7 @@ describe('context fallbackWarn option', () => {
308310
309311 test ( 'specify fallbackWarn option to translate function' , ( ) => {
310312 const mockWarn = warn as jest . MockedFunction < typeof warn >
311- mockWarn . mockImplementation ( ( ) => { } ) // eslint-disable-line @typescript-eslint/no-empty-function
313+ mockWarn . mockImplementation ( ( ) => { } )
312314
313315 const ctx = context ( {
314316 locale : 'en' ,
@@ -331,7 +333,7 @@ describe('context fallbackWarn option', () => {
331333describe ( 'context fallbackFormat option' , ( ) => {
332334 test ( 'specify true' , ( ) => {
333335 const mockWarn = warn as jest . MockedFunction < typeof warn >
334- mockWarn . mockImplementation ( ( ) => { } ) // eslint-disable-line @typescript-eslint/no-empty-function
336+ mockWarn . mockImplementation ( ( ) => { } )
335337
336338 const ctx = context ( {
337339 locale : 'en' ,
@@ -367,7 +369,7 @@ describe('context fallbackFormat option', () => {
367369
368370 test ( 'overrided with default option' , ( ) => {
369371 const mockWarn = warn as jest . MockedFunction < typeof warn >
370- mockWarn . mockImplementation ( ( ) => { } ) // eslint-disable-line @typescript-eslint/no-empty-function
372+ mockWarn . mockImplementation ( ( ) => { } )
371373
372374 const ctx = context ( {
373375 locale : 'en' ,
@@ -403,7 +405,7 @@ describe('context fallbackFormat option', () => {
403405
404406 test ( 'fallbackLocales is nothing' , ( ) => {
405407 const mockWarn = warn as jest . MockedFunction < typeof warn >
406- mockWarn . mockImplementation ( ( ) => { } ) // eslint-disable-line @typescript-eslint/no-empty-function
408+ mockWarn . mockImplementation ( ( ) => { } )
407409
408410 const ctx = context ( {
409411 locale : 'en' ,
@@ -456,7 +458,7 @@ describe('context unresolving option', () => {
456458
457459 test ( 'fallbackFormat is true' , ( ) => {
458460 const mockWarn = warn as jest . MockedFunction < typeof warn >
459- mockWarn . mockImplementation ( ( ) => { } ) // eslint-disable-line @typescript-eslint/no-empty-function
461+ mockWarn . mockImplementation ( ( ) => { } )
460462
461463 const ctx = context ( {
462464 locale : 'en' ,
@@ -530,7 +532,7 @@ describe('context postTranslation option', () => {
530532describe ( 'warnHtmlMessage' , ( ) => {
531533 test ( 'default' , ( ) => {
532534 const mockWarn = warn as jest . MockedFunction < typeof warn >
533- mockWarn . mockImplementation ( ( ) => { } ) // eslint-disable-line @typescript-eslint/no-empty-function
535+ mockWarn . mockImplementation ( ( ) => { } )
534536
535537 const ctx = context ( {
536538 locale : 'en' ,
@@ -571,3 +573,5 @@ describe('edge cases', () => {
571573 expect ( translate ( ctx , 'side.left' ) ) . toEqual ( 'Left' )
572574 } )
573575} )
576+
577+ /* eslint-enable @typescript-eslint/no-empty-function */
0 commit comments