summaryrefslogtreecommitdiff
path: root/test/handler/test_coffeelint_handler.vader
diff options
context:
space:
mode:
authorNaoya Inada <naoina@kuune.org>2017-03-13 20:09:49 +0900
committerNaoya Inada <naoina@kuune.org>2017-03-13 20:09:49 +0900
commite969d97843ca6a8f2beddf05f45d2733c0589a52 (patch)
treee214c22f04a7da1dc5fa7765eea354ee7d0c0c31 /test/handler/test_coffeelint_handler.vader
parentc2ceb9e085c8dd849dee57bdd91b2500fa7b528f (diff)
downloadale-e969d97843ca6a8f2beddf05f45d2733c0589a52.zip
Fix pattern of output for coffeelint
Diffstat (limited to 'test/handler/test_coffeelint_handler.vader')
-rw-r--r--test/handler/test_coffeelint_handler.vader20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/handler/test_coffeelint_handler.vader b/test/handler/test_coffeelint_handler.vader
new file mode 100644
index 00000000..2d56e7c8
--- /dev/null
+++ b/test/handler/test_coffeelint_handler.vader
@@ -0,0 +1,20 @@
+Execute(The coffeelint handler should parse lines correctly):
+ runtime ale_linters/coffee/coffeelint.vim
+
+ AssertEqual
+ \ [
+ \ {
+ \ 'bufnr': 347,
+ \ 'lnum': 125,
+ \ 'col': 1,
+ \ 'text': "Line exceeds maximum allowed length Length is 122, max is 120.",
+ \ 'type': 'E',
+ \ },
+ \ ],
+ \ ale_linters#coffee#coffeelint#Handle(347, [
+ \ "path,lineNumber,lineNumberEnd,level,message",
+ \ "stdin,125,,error,Line exceeds maximum allowed length Length is 122, max is 120.",
+ \ ])
+
+After:
+ call ale#linter#Reset()