parent
2ee257a562
commit
85b26e9788
4 changed files with 6 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue