@@ -528,22 +528,22 @@ mod tests {
528528 )
529529 . await ;
530530
531- // assert_complete_results(
532- // format!(
533- // "select u.id, p.content from auth.users u join auth.posts p on p.user_id = u.{}",
534- // QueryWithCursorPosition::cursor_marker()
535- // )
536- // .as_str(),
537- // vec![
538- // CompletionAssertion::KindNotExists(CompletionItemKind::Table),
539- // CompletionAssertion::LabelAndKind("uid".to_string(), CompletionItemKind::Column),
540- // CompletionAssertion::LabelAndKind("email".to_string(), CompletionItemKind::Column),
541- // CompletionAssertion::LabelAndKind("name".to_string(), CompletionItemKind::Column),
542- // ],
543- // None,
544- // &pool,
545- // )
546- // .await;
531+ assert_complete_results (
532+ format ! (
533+ "select u.id, p.content from auth.users u join auth.posts p on p.user_id = u.{}" ,
534+ QueryWithCursorPosition :: cursor_marker( )
535+ )
536+ . as_str ( ) ,
537+ vec ! [
538+ CompletionAssertion :: KindNotExists ( CompletionItemKind :: Table ) ,
539+ CompletionAssertion :: LabelAndKind ( "uid" . to_string( ) , CompletionItemKind :: Column ) ,
540+ CompletionAssertion :: LabelAndKind ( "email" . to_string( ) , CompletionItemKind :: Column ) ,
541+ CompletionAssertion :: LabelAndKind ( "name" . to_string( ) , CompletionItemKind :: Column ) ,
542+ ] ,
543+ None ,
544+ & pool,
545+ )
546+ . await ;
547547 }
548548
549549 #[ sqlx:: test( migrator = "pgt_test_utils::MIGRATIONS" ) ]
0 commit comments