Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typescript jest test crash #4363

Merged
merged 1 commit into from
Aug 27, 2017

Commits on Aug 25, 2017

  1. fix typescript jest test crash

    test_script_parser.js @line 39 failed to check if element is null before accessing the text property.
    
    ```
    while (!expectText) {
              expectText = element.text;
              element = element.expression;
            }
    ```
    This would crash if the callable node doesn't have the text portion:
    
    ```
    [1,2,3].forEach(n => {...});
    ```
    Fix is easy, also added a test case.
    connectdotz committed Aug 25, 2017
    Configuration menu
    Copy the full SHA
    da552a9 View commit details
    Browse the repository at this point in the history