summaryrefslogtreecommitdiff
path: root/test/handler/test_fecs_handler.vader
blob: 7c216b8d2125af19eb50d60aafb9e5795ba9f235 (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
Before:
  runtime autoload/ale/handlers/fecs.vim

After:
  call ale#linter#Reset()

Execute(fecs should parse lines correctly):
  AssertEqual
  \ [
  \   {
  \     'lnum': 20,
  \     'col': 25,
  \     'text': 'Unexpected console statement.',
  \     'code': 'no-console',
  \     'type': 'W',
  \   },
  \   {
  \     'lnum': 24,
  \     'col': 36,
  \     'text': 'Missing radix parameter.',
  \     'code': 'radix',
  \     'type': 'E',
  \   },
  \   {
  \     'lnum': 25,
  \     'col': 6,
  \     'text': 'Missing static property value.',
  \     'type': 'E',
  \   },
  \ ],
  \ ale#handlers#fecs#Handle(347, [
  \   'fecs  WARN → line 20, col 25: Unexpected console statement.     (no-console)',
  \   'fecs ERROR → line 24, col 36: Missing radix parameter.  (radix)',
  \   'fecs ERROR → line 25, col 6: Missing static property value.',
  \ ])