diff options
Diffstat (limited to 'test/handler')
-rw-r--r-- | test/handler/test_jq_handler.vader | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/handler/test_jq_handler.vader b/test/handler/test_jq_handler.vader new file mode 100644 index 00000000..cbe23b96 --- /dev/null +++ b/test/handler/test_jq_handler.vader @@ -0,0 +1,18 @@ +Before: + runtime ale_linters/json/jq.vim + +After: + call ale#linter#Reset() + +Execute (Should parse error correctly): + AssertEqual + \ [ + \ { + \ 'lnum': 1, + \ 'col': 9, + \ 'text': 'Expected another array element', + \ } + \ ], + \ ale_linters#json#jq#Handle(0, [ + \ 'parse error: Expected another array element at line 1, column 9' + \ ]) |