summaryrefslogtreecommitdiff
path: root/test/fixers
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/fixers
parenta4a4bba884bee9714fcfe70d049e0844ac288743 (diff)
downloadale-ddb3e6d57acfc9081f8c6846d896542014e3024b.zip
Handle failing to connect to eslint_d
Diffstat (limited to 'test/fixers')
-rw-r--r--test/fixers/test_eslint_fixer_callback.vader7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/fixers/test_eslint_fixer_callback.vader b/test/fixers/test_eslint_fixer_callback.vader
index be33825c..774595e3 100644
--- a/test/fixers/test_eslint_fixer_callback.vader
+++ b/test/fixers/test_eslint_fixer_callback.vader
@@ -170,3 +170,10 @@ Execute(The eslint_d post-processor should handle error messages correctly):
\ ale#fixers#eslint#ProcessEslintDOutput(bufnr(''), [
\ 'Error: No ESLint configuration found.',
\ ])
+
+Execute(The eslint_d post-processor should handle failing to connect properly):
+ AssertEqual
+ \ [],
+ \ ale#fixers#eslint#ProcessEslintDOutput(bufnr(''), [
+ \ 'Could not connect',
+ \ ])