summaryrefslogtreecommitdiff
path: root/test/handler/test_eslint_handler.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-09-17 17:32:57 +0100
committerw0rp <devw0rp@gmail.com>2018-09-17 17:32:57 +0100
commitddb3e6d57acfc9081f8c6846d896542014e3024b (patch)
tree744aff906ad68b7f729f826c9c3bddaa9ec780d3 /test/handler/test_eslint_handler.vader
parenta4a4bba884bee9714fcfe70d049e0844ac288743 (diff)
downloadale-ddb3e6d57acfc9081f8c6846d896542014e3024b.zip
Handle failing to connect to eslint_d
Diffstat (limited to 'test/handler/test_eslint_handler.vader')
-rw-r--r--test/handler/test_eslint_handler.vader12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/handler/test_eslint_handler.vader b/test/handler/test_eslint_handler.vader
index 2e8bfd2a..4a57927b 100644
--- a/test/handler/test_eslint_handler.vader
+++ b/test/handler/test_eslint_handler.vader
@@ -365,3 +365,15 @@ Execute(eslint should handle react errors correctly):
\ ale#handlers#eslint#Handle(bufnr(''), [
\ '/path/editor-help.jsx:59:9: Property should be placed on the same line as the component declaration [Error/react/jsx-first-prop-new-line]',
\ ])
+
+Execute(Failing to connect to eslint_d should be handled correctly):
+ AssertEqual
+ \ [
+ \ {
+ \ 'lnum': 1,
+ \ 'text': 'Could not connect to eslint_d. Try updating eslint_d or killing it.',
+ \ },
+ \ ],
+ \ ale#handlers#eslint#Handle(bufnr(''), [
+ \ 'Could not connect',
+ \ ])