test_textlint_handler.vader
1 Before: 2 runtime! ale_linters/markdown/textlint.vim 3 4 After: 5 call ale#linter#Reset() 6 7 Execute(textlint handler should handle errors output): 8 AssertEqual 9 \ [ 10 \ { 11 \ 'lnum': 16, 12 \ 'col': 50, 13 \ 'text': 'Found possibly misspelled word "NeoVim".', 14 \ 'type': 'W', 15 \ 'code': 'preset-japanese/no-doubled-joshi', 16 \ }, 17 \ ], 18 \ ale#handlers#textlint#HandleTextlintOutput(bufnr(''), [ 19 \ '[', 20 \ ' {', 21 \ ' "filePath": "test.md",', 22 \ ' "messages": [', 23 \ ' {', 24 \ ' "type": "lint",', 25 \ ' "ruleId": "preset-japanese/no-doubled-joshi",', 26 \ ' "index": 1332,', 27 \ ' "line": 16,', 28 \ ' "column": 50,', 29 \ ' "severity": 2,', 30 \ ' "message": "Found possibly misspelled word \"NeoVim\"."', 31 \ ' }', 32 \ ' ]', 33 \ ' }', 34 \ ']', 35 \ ]) 36 37 Execute(textlint handler should no error output): 38 AssertEqual 39 \ [], 40 \ ale#handlers#textlint#HandleTextlintOutput(bufnr(''), [])