diff options
author | w0rp <devw0rp@gmail.com> | 2017-06-21 11:15:05 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-06-21 11:15:05 +0100 |
commit | d2806fad600e361e5b419e528c0e999bb4ac9b7f (patch) | |
tree | 41384c00afe6657bec1e5cc9da6de8a308ccdef8 /test | |
parent | 50d952b07d30f6f47398861dbbdcab5ced54dd7f (diff) | |
download | ale-d2806fad600e361e5b419e528c0e999bb4ac9b7f.zip |
Fix the standard and xo handlers so they call the eslint function
Diffstat (limited to 'test')
-rw-r--r-- | test/handler/test_standard_handler.vader | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/test/handler/test_standard_handler.vader b/test/handler/test_standard_handler.vader index 4a69c211..59ebe531 100644 --- a/test/handler/test_standard_handler.vader +++ b/test/handler/test_standard_handler.vader @@ -1,38 +1,29 @@ Execute(The standard handler should parse lines correctly): - runtime ale_linters/javascript/standard.vim - AssertEqual \ [ \ { - \ 'bufnr': 347, \ 'lnum': 47, \ 'col': 14, \ 'text': 'Expected indentation of 2 spaces but found 4.', \ 'type': 'E', \ }, \ { - \ 'bufnr': 347, \ 'lnum': 56, \ 'col': 41, \ 'text': 'Strings must use singlequote.', \ 'type': 'E', \ }, \ { - \ 'bufnr': 347, \ 'lnum': 13, \ 'col': 3, \ 'text': 'Parsing error: Unexpected token', \ 'type': 'E', \ }, \ ], - \ ale_linters#javascript#standard#Handle(347, [ + \ ale#handlers#eslint#Handle(347, [ \ 'This line should be ignored completely', \ '/path/to/some-filename.js:47:14: Expected indentation of 2 spaces but found 4.', \ '/path/to/some-filename.js:56:41: Strings must use singlequote.', \ 'This line should be ignored completely', \ '/path/to/some-filename.js:13:3: Parsing error: Unexpected token', \ ]) - -After: - call ale#linter#Reset() - |