@@ -32,7 +32,7 @@ test('should include default response type in request when includeDefault is set
32
32
schemaFile : resolve ( __dirname , 'fixtures/petstore.json' ) ,
33
33
includeDefault : true ,
34
34
} )
35
- // eslint-disable-next-line no-template-curly-in-string
35
+
36
36
expect ( api ) . toMatch (
37
37
/ e x p o r t t y p e C r e a t e U s e r A p i R e s p o n s e = [ \s \S / * ] + s t a t u s d e f a u l t s u c c e s s f u l o p e r a t i o n [ \s / * ] + U s e r ; / ,
38
38
)
@@ -197,7 +197,7 @@ describe('option encodePathParams', () => {
197
197
...config ,
198
198
filterEndpoints : [ 'getOrderById' ] ,
199
199
} )
200
- // eslint-disable-next-line no-template-curly-in-string
200
+
201
201
expect ( api ) . toContain (
202
202
'`/store/order/${encodeURIComponent(String(queryArg.orderId))}`' ,
203
203
)
@@ -226,7 +226,7 @@ describe('option encodePathParams', () => {
226
226
flattenArg : true ,
227
227
filterEndpoints : [ 'getOrderById' ] ,
228
228
} )
229
- // eslint-disable-next-line no-template-curly-in-string
229
+
230
230
expect ( api ) . toContain (
231
231
'`/store/order/${encodeURIComponent(String(queryArg))}`' ,
232
232
)
@@ -238,7 +238,7 @@ describe('option encodePathParams', () => {
238
238
encodePathParams : false ,
239
239
filterEndpoints : [ 'findPetsByStatus' , 'getOrderById' ] ,
240
240
} )
241
- // eslint-disable-next-line no-template-curly-in-string
241
+
242
242
expect ( api ) . toContain ( '`/store/order/${queryArg.orderId}`' )
243
243
} )
244
244
} )
@@ -266,7 +266,7 @@ describe('option encodeQueryParams', () => {
266
266
...config ,
267
267
filterEndpoints : [ 'getOrderById' ] ,
268
268
} )
269
- // eslint-disable-next-line no-template-curly-in-string
269
+
270
270
expect ( api ) . toContain ( '`/store/order/${queryArg.orderId}`' )
271
271
} )
272
272
@@ -301,7 +301,7 @@ describe('option flattenArg', () => {
301
301
...config ,
302
302
filterEndpoints : [ 'getOrderById' ] ,
303
303
} )
304
- // eslint-disable-next-line no-template-curly-in-string
304
+
305
305
expect ( api ) . toContain ( '`/store/order/${queryArg}`' )
306
306
expect ( api ) . toMatch (
307
307
/ e x p o r t t y p e G e t O r d e r B y I d A p i A r g = [ \s / * ] + I D o f o r d e r t h a t n e e d s t o b e f e t c h e d [ \s / * ] + n u m b e r ; / ,
@@ -471,7 +471,7 @@ test('should use brackets in a querystring urls arg, when the arg contains full
471
471
apiFile : './fixtures/emptyApi.ts' ,
472
472
schemaFile : resolve ( __dirname , 'fixtures/params.json' ) ,
473
473
} )
474
- // eslint-disable-next-line no-template-curly-in-string
474
+
475
475
expect ( api ) . toContain ( '`/api/v1/list/${queryArg["item.id"]}`' )
476
476
expect ( api ) . toMatchSnapshot ( )
477
477
} )
@@ -482,7 +482,7 @@ test('duplicate parameter names must be prefixed with a path or query prefix', a
482
482
apiFile : './fixtures/emptyApi.ts' ,
483
483
schemaFile : resolve ( __dirname , 'fixtures/params.json' ) ,
484
484
} )
485
- // eslint-disable-next-line no-template-curly-in-string
485
+
486
486
expect ( api ) . toContain ( 'pathSomeName: string' )
487
487
expect ( api ) . toContain ( 'querySomeName: string' )
488
488
expect ( api ) . toMatchSnapshot ( )
0 commit comments