Update tests to reflect javascript grammar changes
This commit is contained in:
parent
b44fe992ae
commit
c90a532d8f
6 changed files with 48 additions and 40 deletions
|
|
@ -12,7 +12,7 @@ fn test_tree_edit() {
|
|||
|
||||
assert_eq!(
|
||||
tree.root_node().to_sexp(),
|
||||
"(program (expression_statement (binary_expression (identifier) (identifier))))"
|
||||
"(program (expression_statement (binary_expression left: (identifier) right: (identifier))))"
|
||||
);
|
||||
|
||||
// edit entirely within the tree's padding:
|
||||
|
|
@ -247,7 +247,7 @@ fn test_get_changed_ranges() {
|
|||
|
||||
assert_eq!(
|
||||
tree.root_node().to_sexp(),
|
||||
"(program (expression_statement (object (pair (property_identifier) (null)))))"
|
||||
"(program (expression_statement (object (pair key: (property_identifier) value: (null)))))"
|
||||
);
|
||||
|
||||
// Updating one token
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue