File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
packages/tracing-internal/test/browser Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -394,9 +394,14 @@ describe('callbacks', () => {
394
394
} ) ;
395
395
} ) ;
396
396
397
+ interface ProtocolInfo {
398
+ name : string ;
399
+ version : string ;
400
+ }
401
+
397
402
describe ( 'HTTPTimings' , ( ) => {
398
403
describe ( 'Extracting version from ALPN protocol' , ( ) => {
399
- const nextHopToNetworkVersion = {
404
+ const nextHopToNetworkVersion : Record < string , ProtocolInfo > = {
400
405
'http/0.9' : { name : 'http' , version : '0.9' } ,
401
406
'http/1.0' : { name : 'http' , version : '1.0' } ,
402
407
'http/1.1' : { name : 'http' , version : '1.1' } ,
@@ -434,7 +439,7 @@ describe('HTTPTimings', () => {
434
439
435
440
const protocols = Object . keys ( nextHopToNetworkVersion ) ;
436
441
for ( const protocol of protocols ) {
437
- const expected : { name : string ; version : string } = nextHopToNetworkVersion [ protocol ] ;
442
+ const expected : ProtocolInfo = nextHopToNetworkVersion [ protocol ] ;
438
443
expect ( extractNetworkProtocol ( protocol ) ) . toMatchObject ( expected ) ;
439
444
}
440
445
} ) ;
You can’t perform that action at this time.
0 commit comments