/ test / handler / test_standard_handler.vader
test_standard_handler.vader
 1  Before:
 2    Save g:ale_javascript_eslint_suppress_eslintignore
 3  
 4    let g:ale_javascript_eslint_suppress_eslintignore = 0
 5  
 6  After:
 7    Restore
 8  
 9  Execute(The standard handler should parse lines correctly):
10    AssertEqual
11    \ [
12    \   {
13    \     'lnum': 47,
14    \     'col': 14,
15    \     'text': 'Expected indentation of 2 spaces but found 4.',
16    \     'type': 'E',
17    \   },
18    \   {
19    \     'lnum': 56,
20    \     'col': 41,
21    \     'text': 'Strings must use singlequote.',
22    \     'type': 'E',
23    \   },
24    \   {
25    \     'lnum': 13,
26    \     'col': 3,
27    \     'text': 'Parsing error: Unexpected token',
28    \     'type': 'E',
29    \   },
30    \ ],
31    \ ale#handlers#eslint#Handle(347, [
32    \   'This line should be ignored completely',
33    \   '/path/to/some-filename.js:47:14: Expected indentation of 2 spaces but found 4.',
34    \   '/path/to/some-filename.js:56:41: Strings must use singlequote.',
35    \   'This line should be ignored completely',
36    \   '/path/to/some-filename.js:13:3: Parsing error: Unexpected token',
37    \ ])