@@ -74,8 +74,8 @@ describe('request validation', () => {
74
74
`${ fixture } ${ extname ( targetId , clientId ) } ` ,
75
75
) ;
76
76
77
- let result ;
78
- let expected ;
77
+ let result : string [ ] | false ;
78
+ let expected : string ;
79
79
80
80
try {
81
81
const options : HTTPSnippetOptions = { } ;
@@ -88,7 +88,7 @@ describe('request validation', () => {
88
88
expected = readFileSync ( expectedPath ) . toString ( ) ;
89
89
const snippet = new HTTPSnippet ( request , options ) ;
90
90
91
- result = snippet . convert ( targetId , clientId ) ;
91
+ result = snippet . convert ( targetId , clientId ) [ 0 ] ;
92
92
93
93
if ( OVERWRITE_EVERYTHING && result ) {
94
94
writeFileSync ( expectedPath , String ( result ) ) ;
@@ -313,7 +313,7 @@ describe('addTargetClient', () => {
313
313
314
314
const snippet = new HTTPSnippet ( short . log . entries [ 0 ] . request as Request , { } ) ;
315
315
316
- const result = snippet . convert ( 'node' , 'custom' ) ;
316
+ const result = snippet . convert ( 'node' , 'custom' ) [ 0 ] ;
317
317
318
318
expect ( result ) . toBe ( 'This was generated from a custom client.' ) ;
319
319
} ) ;
@@ -345,7 +345,7 @@ describe('addClientPlugin', () => {
345
345
346
346
const snippet = new HTTPSnippet ( short . log . entries [ 0 ] . request as Request , { } ) ;
347
347
348
- const result = snippet . convert ( 'node' , 'custom' ) ;
348
+ const result = snippet . convert ( 'node' , 'custom' ) [ 0 ] ;
349
349
350
350
expect ( result ) . toBe ( 'This was generated from a custom client.' ) ;
351
351
} ) ;
0 commit comments