summaryrefslogtreecommitdiff
path: root/test/test_eslint_handler.vader
blob: 692d8b30e10aca95b7001bf4b407e634af153859 (plain)
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
Execute(The eslint handler should parse lines correctly):
  runtime ale_linters/javascript/eslint.vim

  AssertEqual
  \ [
  \   {
  \     'bufnr': 347,
  \     'lnum': 47,
  \     'col': 14,
  \     'text': 'Missing trailing comma. [Warning/comma-dangle]',
  \     'type': 'W',
  \   },
  \   {
  \     'bufnr': 347,
  \     'lnum': 56,
  \     'col': 41,
  \     'text': 'Missing semicolon. [Error/semi]',
  \     'type': 'E',
  \   },
  \   {
  \     'bufnr': 347,
  \     'lnum': 13,
  \     'col': 3,
  \     'text': 'Parsing error: Unexpected token',
  \     'type': 'E',
  \   },
  \ ],
  \ ale_linters#javascript#eslint#Handle(347, [
  \   'This line should be ignored completely',
  \   '/path/to/some-filename.js:47:14: Missing trailing comma. [Warning/comma-dangle]',
  \   '/path/to/some-filename.js:56:41: Missing semicolon. [Error/semi]',
  \   'This line should be ignored completely',
  \   '/path/to/some-filename.js:13:3: Parsing error: Unexpected token',
  \ ])

After:
  call ale#linter#Reset()