Update bash unit test to reflect field additions

This commit is contained in:
Max Brunsfeld 2019-12-10 14:12:45 -08:00
parent c2e253a4c8
commit d25b71182e

View file

@ -130,12 +130,15 @@ describe("Parser", () => {
tree = parser.parse("FOO=bar echo <<EOF 2> err.txt > hello.txt \nhello\nEOF");
assert.equal(
tree.rootNode.toString(),
'(program (redirected_statement (command ' +
'(variable_assignment (variable_name) (word)) ' +
'(command_name (word))) ' +
'(heredoc_redirect (heredoc_start)) ' +
'(file_redirect (file_descriptor) (word)) ' +
'(file_redirect (word))) ' +
'(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))'
);
}).timeout(5000);