summaryrefslogtreecommitdiff
path: root/test/handler/test_stylelint_handler.vader
blob: da2df534c4ffb63ac0959e52df232e93021dbaed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Execute (stylelint errors should be handled correctly):
  AssertEqual
  \ [
  \   {
  \     'lnum': 108,
  \     'col': 10,
  \     'type': 'E',
  \     'text': 'Unexpected leading zero [number-leading-zero]',
  \   },
  \   {
  \     'lnum': 116,
  \     'col': 20,
  \     'type': 'E',
  \     'text': 'Expected a trailing semicolon [declaration-block-trailing-semicolon]',
  \   },
  \ ],
  \ ale#handlers#css#HandleStyleLintFormat(42, [
  \   'src/main.css',
  \   ' 108:10  ✖  Unexpected leading zero         number-leading-zero',
  \   ' 116:20  ✖  Expected a trailing semicolon   declaration-block-trailing-semicolon',
  \ ])