ale/test/handler/test_yamllint_handler.vader

28 lines
685 B
Plaintext
Raw Normal View History

2018-07-01 07:50:46 -04:00
Before:
runtime! ale_linters/yaml/yamllint.vim
After:
call ale#linter#Reset()
Execute:
AssertEqual
\ [
\ {
\ 'lnum': 1,
\ 'col': 1,
\ 'type': 'W',
2018-07-01 08:15:12 -04:00
\ 'text': 'missing document start "---"',
\ 'code': 'document-start',
2018-07-01 07:50:46 -04:00
\ },
\ {
\ 'lnum': 2,
\ 'col': 1,
\ 'type': 'E',
\ 'text': 'syntax error: expected the node content, but found ''<stream end>''',
\ },
\ ],
\ ale_linters#yaml#yamllint#Handle(bufnr(''), [
\ 'something.yaml:1:1: [warning] missing document start "---" (document-start)',
\ 'something.yml:2:1: [error] syntax error: expected the node content, but found ''<stream end>''',
\ ])