mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 14:17:02 +00:00
adjust buffer-formatting assertion to reflect final newline addition
This commit is contained in:
parent
1deff43639
commit
e7b56f6342
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue