test_drafter_handler.vader
1 Before: 2 runtime! ale_linters/apiblueprint/drafter.vim 3 4 After: 5 call ale#linter#Reset() 6 7 Execute(drafter handler should handle errors output): 8 AssertEqual 9 \ [ 10 \ { 11 \ 'lnum': 25, 12 \ 'col': 3, 13 \ 'text': "unable to parse response signature, expected 'response [<HTTP status code>] [(<media type>)]'", 14 \ 'type': "W", 15 \ }, 16 \ { 17 \ 'lnum': 25, 18 \ 'col': 3, 19 \ 'text': "missing response HTTP status code, assuming 'Response 200'", 20 \ 'type': "W", 21 \ }, 22 \ { 23 \ 'lnum': 30, 24 \ 'col': 7, 25 \ 'end_lnum': 32, 26 \ 'end_col': 7, 27 \ 'text': "message-body asset is expected to be a pre-formatted code block, separate it by a newline and indent every of its line by 12 spaces or 3 tabs", 28 \ 'type': "W", 29 \ }, 30 \ ], 31 \ ale_linters#apiblueprint#drafter#HandleErrors(bufnr(''), [ 32 \ "", 33 \ "OK.", 34 \ "warning: (3) unable to parse response signature, expected 'response [<HTTP status code>] [(<media type>)]'; line 25, column 3 - line 25, column 29", 35 \ "warning: (6) missing response HTTP status code, assuming 'Response 200'; line 25, column 3 - line 25, column 29", 36 \ "warning: (10) message-body asset is expected to be a pre-formatted code block, separate it by a newline and indent every of its line by 12 spaces or 3 tabs; line 30, column 7 - line 30, column 11; line 31, column 6 - line 31, column 7; line 32, column 6 - line 32, column 7" 37 \ ])