diff --git a/lib/binding_web/test/query-test.js b/lib/binding_web/test/query-test.js index 06ef5370..b927ceff 100644 --- a/lib/binding_web/test/query-test.js +++ b/lib/binding_web/test/query-test.js @@ -175,15 +175,15 @@ describe("Query", () => { it('handles conditions that compare the text of capture to each other', () => { tree = parser.parse(` - const ab = abc + 1; - const def = de + 1; - const ghi = ghi + 1; + ab = abc + 1; + def = de + 1; + ghi = ghi + 1; `); query = JavaScript.query(` - ((variable_declarator - name: (identifier) @id1 - value: (binary_expression + ((assignment_expression + left: (identifier) @id1 + right: (binary_expression left: (identifier) @id2)) (eq? @id1 @id2)) `);