diff --git a/lib/binding_web/test/parser-test.js b/lib/binding_web/test/parser-test.js index fcd714b2..74c45d96 100644 --- a/lib/binding_web/test/parser-test.js +++ b/lib/binding_web/test/parser-test.js @@ -127,19 +127,19 @@ describe("Parser", () => { it("can use the bash parser", async () => { parser.setLanguage(await Parser.Language.load(languageURL('bash'))); - tree = parser.parse("FOO=bar echo < err.txt > hello.txt \nhello\nEOF"); + tree = parser.parse("FOO=bar echo < err.txt > hello.txt \nhello${FOO}\nEOF"); assert.equal( tree.rootNode.toString(), - '(program (redirected_statement ' + - 'body: (command ' + - '(variable_assignment ' + - 'name: (variable_name) ' + - 'value: (word)) ' + - 'name: (command_name (word))) ' + - 'redirect: (heredoc_redirect (heredoc_start)) ' + - 'redirect: (file_redirect descriptor: (file_descriptor) destination: (word)) ' + - 'redirect: (file_redirect destination: (word))) ' + - '(heredoc_body))' + '(program ' + + '(redirected_statement ' + + 'body: (command ' + + '(variable_assignment name: (variable_name) value: (word)) ' + + 'name: (command_name (word))) ' + + 'redirect: (heredoc_redirect (heredoc_start) ' + + 'redirect: (file_redirect descriptor: (file_descriptor) destination: (word)) ' + + 'redirect: (file_redirect destination: (word)) ' + + '(heredoc_body ' + + '(expansion (variable_name))) (heredoc_end))))' ); }).timeout(5000);