diff options
author | w0rp <devw0rp@gmail.com> | 2019-01-27 12:08:31 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2019-01-27 12:08:39 +0000 |
commit | 79135dfe13ac1ab4a644eb3bc9f621e7d7336cbe (patch) | |
tree | ab86438ff5d9c4790c951331bb4b6aa6c3f889fd /test/handler | |
parent | d7ced31fe20b218320046eea46ea2f8558d1ee4b (diff) | |
download | ale-79135dfe13ac1ab4a644eb3bc9f621e7d7336cbe.zip |
Fix #2192 - Handle more ignore-pattern messages for ESLint
Diffstat (limited to 'test/handler')
-rw-r--r-- | test/handler/test_eslint_handler.vader | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/handler/test_eslint_handler.vader b/test/handler/test_eslint_handler.vader index 4a57927b..1bb438a6 100644 --- a/test/handler/test_eslint_handler.vader +++ b/test/handler/test_eslint_handler.vader @@ -342,6 +342,17 @@ Execute(eslint should warn about ignored files by default): \ '/path/to/some/ignored.js:0:0: File ignored because of a matching ignore pattern. Use "--no-ignore" to override. [Warning]', \ ]) + AssertEqual + \ [{ + \ 'lnum': 0, + \ 'col': 0, + \ 'type': 'W', + \ 'text': 'File ignored by default. Use "--ignore-pattern ''!node_modules/*''" to override.', + \ }], + \ ale#handlers#eslint#Handle(bufnr(''), [ + \ '/path/to/some/ignored.js:0:0: File ignored by default. Use "--ignore-pattern ''!node_modules/*''" to override. [Warning]', + \ ]) + Execute(eslint should not warn about ignored files when explicitly disabled): let g:ale_javascript_eslint_suppress_eslintignore = 1 @@ -351,6 +362,12 @@ Execute(eslint should not warn about ignored files when explicitly disabled): \ '/path/to/some/ignored.js:0:0: File ignored because of a matching ignore pattern. Use "--no-ignore" to override. [Warning]', \ ]) + AssertEqual + \ [], + \ ale#handlers#eslint#Handle(bufnr(''), [ + \ '/path/to/some/ignored.js:0:0: File ignored by default. Use "--ignore-pattern ''!node_modules/*''" to override. [Warning]', + \ ]) + Execute(eslint should handle react errors correctly): AssertEqual \ [ |