Skip to content

Commit 25bc90c

Browse files
committed
chore: improve snapshot readability
1 parent aa31ae0 commit 25bc90c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parser/ast_tree_test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ mod tests {
44
use insta::*;
55

66
pub fn test_ast_tree(name: &str, input: &str) {
7-
let let_ast = match parse(input) {
7+
let ast = match parse(input) {
88
Ok(node) => {
99
serde_json::to_string_pretty(&node).unwrap()
1010
}
1111
Err(e) => format!("parse error: {}", e[0])
1212
};
13-
assert_snapshot!(name, let_ast);
13+
assert_snapshot!(name, ast, input);
1414
}
1515

1616
#[test]

0 commit comments

Comments
 (0)