From b79839b599ab4dacaab806e51f8590fffc61a3de Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 16 Sep 2019 12:48:01 -0700 Subject: [PATCH] Use a more realistic example in one JS query unit test --- lib/binding_web/test/query-test.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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)) `);