mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-07 20:39:04 +03:00
parent
2ee257a562
commit
85b26e9788
@ -336,8 +336,10 @@ mod tests {
|
||||
path.push("golden");
|
||||
path.push(format!("{}.json", golden_filename));
|
||||
|
||||
let have_json =
|
||||
let mut have_json =
|
||||
serde_json::to_string_pretty(&entries).expect("could not serialize entries to JSON");
|
||||
// We always want to save with a trailing newline.
|
||||
have_json.push('\n');
|
||||
|
||||
let update = std::env::var("UPDATE_GOLDEN")
|
||||
.map(|val| val.to_ascii_lowercase() == "true")
|
||||
|
@ -778,4 +778,4 @@
|
||||
"previous": null,
|
||||
"filename": "crates/vim/src/utils.rs"
|
||||
}
|
||||
]
|
||||
]
|
||||
|
@ -132,4 +132,4 @@
|
||||
"previous": null,
|
||||
"filename": "file_b.txt"
|
||||
}
|
||||
]
|
||||
]
|
||||
|
@ -132,4 +132,4 @@
|
||||
"previous": null,
|
||||
"filename": "index.js"
|
||||
}
|
||||
]
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user