@@ -358,7 +358,9 @@ mod tests {
358358 needs_update_text : "❌ {}" . to_string ( ) ,
359359 } ;
360360
361- let resolved_versions = HashMap :: new ( ) ;
361+ // Lock file has the latest version
362+ let mut resolved_versions = HashMap :: new ( ) ;
363+ resolved_versions. insert ( "serde" . to_string ( ) , "1.0.214" . to_string ( ) ) ;
362364 let hints = tokio_test:: block_on ( ecosystem. generate_inlay_hints (
363365 & parse_result,
364366 & cached_versions,
@@ -369,7 +371,7 @@ mod tests {
369371
370372 assert_eq ! ( hints. len( ) , 1 ) ;
371373 match & hints[ 0 ] . label {
372- InlayHintLabel :: String ( s) => assert_eq ! ( s, "✅" ) ,
374+ InlayHintLabel :: String ( s) => assert_eq ! ( s, "✅ 1.0.214 " ) ,
373375 _ => panic ! ( "Expected String label" ) ,
374376 }
375377 }
@@ -394,7 +396,9 @@ mod tests {
394396 needs_update_text : "❌ {}" . to_string ( ) ,
395397 } ;
396398
397- let resolved_versions = HashMap :: new ( ) ;
399+ // Lock file has the latest version
400+ let mut resolved_versions = HashMap :: new ( ) ;
401+ resolved_versions. insert ( "serde" . to_string ( ) , "1.0.214" . to_string ( ) ) ;
398402 let hints = tokio_test:: block_on ( ecosystem. generate_inlay_hints (
399403 & parse_result,
400404 & cached_versions,
@@ -405,7 +409,7 @@ mod tests {
405409
406410 assert_eq ! ( hints. len( ) , 1 ) ;
407411 match & hints[ 0 ] . label {
408- InlayHintLabel :: String ( s) => assert_eq ! ( s, "✅" ) ,
412+ InlayHintLabel :: String ( s) => assert_eq ! ( s, "✅ 1.0.214 " ) ,
409413 _ => panic ! ( "Expected String label" ) ,
410414 }
411415 }
@@ -466,7 +470,9 @@ mod tests {
466470 needs_update_text : "❌ {}" . to_string ( ) ,
467471 } ;
468472
469- let resolved_versions = HashMap :: new ( ) ;
473+ // Lock file has the latest version - but show_up_to_date_hints is false
474+ let mut resolved_versions = HashMap :: new ( ) ;
475+ resolved_versions. insert ( "serde" . to_string ( ) , "1.0.214" . to_string ( ) ) ;
470476 let hints = tokio_test:: block_on ( ecosystem. generate_inlay_hints (
471477 & parse_result,
472478 & cached_versions,
0 commit comments