@@ -29,8 +29,8 @@ describe("getRuntimeTag", () => {
2929 expect ( getRuntimeTag ( ) ) . toBe ( "runtime:nodejs18.x" ) ;
3030 } ) ;
3131
32- it ( "returns the right tag for v20.9 .0" , ( ) => {
33- mockedGetProcessVersion . mockReturnValue ( "v20.9 .0" ) ;
32+ it ( "returns the right tag for v20.19 .0" , ( ) => {
33+ mockedGetProcessVersion . mockReturnValue ( "v20.19 .0" ) ;
3434 expect ( getRuntimeTag ( ) ) . toBe ( "runtime:nodejs20.x" ) ;
3535 } ) ;
3636
@@ -49,7 +49,7 @@ describe("getEnhancedMetricTags", () => {
4949 } ) ;
5050
5151 it ( "generates tag list with runtime" , ( ) => {
52- mockedGetProcessVersion . mockReturnValue ( "v20.9 .0" ) ;
52+ mockedGetProcessVersion . mockReturnValue ( "v20.19 .0" ) ;
5353 expect ( getEnhancedMetricTags ( mockContext ) ) . toStrictEqual ( [
5454 "region:us-east-1" ,
5555 "account_id:123497598159" ,
@@ -63,7 +63,7 @@ describe("getEnhancedMetricTags", () => {
6363 } ) ;
6464
6565 it ( "generates tag list with local runtime" , ( ) => {
66- mockedGetProcessVersion . mockReturnValue ( "v20.9 .0" ) ;
66+ mockedGetProcessVersion . mockReturnValue ( "v20.19 .0" ) ;
6767 expect ( getEnhancedMetricTags ( mockContextLocal ) ) . toStrictEqual ( [
6868 "functionname:my-test-lambda" ,
6969 "memorysize:128" ,
@@ -87,7 +87,7 @@ describe("getEnhancedMetricTags", () => {
8787 } ) ;
8888
8989 it ( "doesn't add context-based tags when context not provided" , ( ) => {
90- mockedGetProcessVersion . mockReturnValue ( "v20.9 .0" ) ;
90+ mockedGetProcessVersion . mockReturnValue ( "v20.19 .0" ) ;
9191 expect ( getEnhancedMetricTags ( ) ) . toStrictEqual ( [ "cold_start:true" , "datadog_lambda:vX.X.X" , "runtime:nodejs20.x" ] ) ;
9292 } ) ;
9393} ) ;
0 commit comments