Adjust assertion to reflect rust grammar upgrade

Max Brunsfeld and Nathan Sobo created

Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Change summary

crates/language/src/tests.rs | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

Detailed changes

crates/language/src/tests.rs 🔗

@@ -190,7 +190,7 @@ async fn test_reparse(mut cx: gpui::TestAppContext) {
         concat!(
             "(source_file (function_item name: (identifier) ",
             "parameters: (parameters (parameter pattern: (identifier) type: (type_identifier))) ",
-            "body: (block (identifier))))"
+            "body: (block (expression_statement (identifier)))))"
         )
     );
 
@@ -224,11 +224,11 @@ async fn test_reparse(mut cx: gpui::TestAppContext) {
         concat!(
             "(source_file (function_item name: (identifier) ",
             "parameters: (parameters (parameter pattern: (identifier) type: (type_identifier))) ",
-            "body: (block (call_expression ",
+            "body: (block (expression_statement (call_expression ",
             "function: (generic_function ",
             "function: (field_expression value: (identifier) field: (field_identifier)) ",
             "type_arguments: (type_arguments (type_identifier))) ",
-            "arguments: (arguments (identifier))))))",
+            "arguments: (arguments (identifier)))))))",
         )
     );
 
@@ -262,11 +262,11 @@ async fn test_reparse(mut cx: gpui::TestAppContext) {
         concat!(
             "(source_file (function_item name: (identifier) ",
             "parameters: (parameters (parameter pattern: (identifier) type: (type_identifier))) ",
-            "body: (block (call_expression ",
+            "body: (block (expression_statement (call_expression ",
             "function: (generic_function ",
             "function: (field_expression value: (identifier) field: (field_identifier)) ",
             "type_arguments: (type_arguments (type_identifier))) ",
-            "arguments: (arguments (identifier))))))",
+            "arguments: (arguments (identifier)))))))",
         )
     );