mirror of
https://github.com/atom/atom.git
synced 2026-01-15 01:48:15 -05:00
adjusted expected values in tree-sitter-failing tests to match grammar changes
This commit is contained in:
@@ -149,7 +149,9 @@ describe('TreeSitterLanguageMode', () => {
|
||||
languageMode.tree.rootNode
|
||||
.descendantForPosition(Point(1, 2), Point(1, 6))
|
||||
.toString()
|
||||
).toBe('(declaration (primitive_type) (identifier) (MISSING ";"))');
|
||||
).toBe(`
|
||||
(declaration type: (primitive_type) declarator: (identifier) (MISSING ";"))
|
||||
`);
|
||||
|
||||
expectTokensToEqual(editor, [
|
||||
[
|
||||
@@ -1513,11 +1515,11 @@ describe('TreeSitterLanguageMode', () => {
|
||||
buffer.setLanguageMode(languageMode);
|
||||
|
||||
expect(languageMode.tree.rootNode.toString()).toBe(
|
||||
'(program (if (identifier) (then ' +
|
||||
'(program (if condition: (identifier) consequence: (then ' +
|
||||
'(identifier)) ' +
|
||||
'(elsif (identifier) (then ' +
|
||||
'alternative: (elsif condition: (identifier) consequence: (then ' +
|
||||
'(identifier)) ' +
|
||||
'(else ' +
|
||||
'alternative: (else ' +
|
||||
'(identifier)))))'
|
||||
);
|
||||
|
||||
@@ -1931,8 +1933,8 @@ describe('TreeSitterLanguageMode', () => {
|
||||
'fragment',
|
||||
'element',
|
||||
'script_element',
|
||||
'raw_text',
|
||||
'program',
|
||||
'raw_text',
|
||||
'expression_statement',
|
||||
'call_expression',
|
||||
'template_string',
|
||||
|
||||
Reference in New Issue
Block a user