summaryrefslogtreecommitdiff
path: root/test/handler
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2023-09-08 01:00:35 +0100
committerw0rp <devw0rp@gmail.com>2023-09-08 01:00:35 +0100
commitbf55175b6971a9a706dfb73ddd00b71750aaee80 (patch)
tree906224bf3752461d25a891dfd0c8261efd4a1480 /test/handler
parente5816964d1ce27c1dcf3497ba80beccd99bc8fd6 (diff)
downloadale-bf55175b6971a9a706dfb73ddd00b71750aaee80.zip
#4454 Clean up root test directory tests
Combine cases into smaller tests of tests and remove tests we no longer need. Linter tests have been moved to where they should be.
Diffstat (limited to 'test/handler')
-rw-r--r--test/handler/test_jq_handler.vader18
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'
+ \ ])