From e7b56f6342efc58614c2444dc6f886a542ba45c9 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 28 Feb 2023 08:34:38 -0800 Subject: [PATCH] adjust buffer-formatting assertion to reflect final newline addition --- crates/collab/src/tests/integration_tests.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/collab/src/tests/integration_tests.rs b/crates/collab/src/tests/integration_tests.rs index 4c8f978164..1ab78ac310 100644 --- a/crates/collab/src/tests/integration_tests.rs +++ b/crates/collab/src/tests/integration_tests.rs @@ -3892,9 +3892,11 @@ async fn test_formatting_buffer( }) .await .unwrap(); + + // The edits from the LSP are applied, and a final newline is added. assert_eq!( buffer_b.read_with(cx_b, |buffer, _| buffer.text()), - "let honey = \"two\"" + "let honey = \"two\"\n" ); // Ensure buffer can be formatted using an external command. Notice how the