diff options
Diffstat (limited to 'test/handler/test_hurlfmt_handler.vader')
-rw-r--r-- | test/handler/test_hurlfmt_handler.vader | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/handler/test_hurlfmt_handler.vader b/test/handler/test_hurlfmt_handler.vader new file mode 100644 index 00000000..3da686d7 --- /dev/null +++ b/test/handler/test_hurlfmt_handler.vader @@ -0,0 +1,29 @@ +Before: + runtime ale_linters/hurl/hurlfmt.vim + +After: + call ale#linter#Reset() + +Execute(The hurlfmt handler should parse lines correctly): + AssertEqual + \ [ + \ { + \ 'lnum': 11, + \ 'bufnr': 345, + \ 'col': 48, + \ 'end_col': 48, + \ 'text': 'Parsing space : expecting a space ', + \ 'type': 'E', + \ }, + \ ], + \ ale_linters#hurl#hurlfmt#HandleOutput(345, [ + \ 'error: Parsing space', + \ '--> test.hurl:11:48', + \ ' |', + \ '8 " | header "Content-Type"= "application/json; charset=utf-8"', + \ ' | ^ expecting a space', + \ ' |', + \ ]) + +Execute(The rubocop handler should handle empty output): + AssertEqual [], ale_linters#hurl#hurlfmt#HandleOutput(347, []) |