File: test_standard_handler.vader

package info (click to toggle)
vim-ale 4.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,764 kB
  • sloc: sh: 499; python: 311; perl: 31; makefile: 4; xml: 4; javascript: 1
file content (37 lines) | stat: -rw-r--r-- 993 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Before:
  Save g:ale_javascript_eslint_suppress_eslintignore

  let g:ale_javascript_eslint_suppress_eslintignore = 0

After:
  Restore

Execute(The standard handler should parse lines correctly):
  AssertEqual
  \ [
  \   {
  \     'lnum': 47,
  \     'col': 14,
  \     'text': 'Expected indentation of 2 spaces but found 4.',
  \     'type': 'E',
  \   },
  \   {
  \     'lnum': 56,
  \     'col': 41,
  \     'text': 'Strings must use singlequote.',
  \     'type': 'E',
  \   },
  \   {
  \     'lnum': 13,
  \     'col': 3,
  \     'text': 'Parsing error: Unexpected token',
  \     'type': 'E',
  \   },
  \ ],
  \ 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',
  \ ])