test_remark_lint_handler.vader
1 Before: 2 runtime ale_linters/markdown/remark_lint.vim 3 4 After: 5 call ale#linter#Reset() 6 7 Execute(Warning and error messages should be handled correctly): 8 AssertEqual 9 \ [ 10 \ { 11 \ 'lnum': 1, 12 \ 'col': 4, 13 \ 'type': 'W', 14 \ 'text': 'Incorrect list-item indent: add 1 space list-item-indent remark-lint', 15 \ }, 16 \ { 17 \ 'lnum': 3, 18 \ 'col': 5, 19 \ 'type': 'E', 20 \ 'text': 'Incorrect list-item indent: remove 1 space list-item-indent remark-lint', 21 \ }, 22 \ { 23 \ 'lnum': 18, 24 \ 'col': 71, 25 \ 'end_lnum': 19, 26 \ 'end_col': 1, 27 \ 'type': 'E', 28 \ 'text': 'Missing new line after list item list-item-spacing remark-lint', 29 \ }, 30 \ ], 31 \ ale_linters#markdown#remark_lint#Handle(1, [ 32 \ 'foo.md', 33 \ ' 1:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint', 34 \ ' 3:5 error Incorrect list-item indent: remove 1 space list-item-indent remark-lint', 35 \ ' 18:71-19:1 error Missing new line after list item list-item-spacing remark-lint', 36 \ '', 37 \ '⚠ 1 warnings', 38 \ '✘ 2 errors', 39 \])