Update bash unit test to reflect field additions
This commit is contained in:
parent
c2e253a4c8
commit
d25b71182e
1 changed files with 9 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue