This commit is contained in:
Aleksey Kladov 2019-11-27 21:44:38 +03:00
parent 757e593b25
commit 27b362b059
3 changed files with 7 additions and 10 deletions

View file

@ -332,8 +332,7 @@ fn bar() {
"#
.trim(),
);
let dst_file =
project_dir().join("crates/ra_ide/src/snapshots/rainbow_highlighting.html");
let dst_file = project_dir().join("crates/ra_ide/src/snapshots/rainbow_highlighting.html");
let actual_html = &analysis.highlight_as_html(file_id, true).unwrap();
let expected_html = &read_text(&dst_file);
std::fs::write(dst_file, &actual_html).unwrap();