From ddb3e6d57acfc9081f8c6846d896542014e3024b Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 17 Sep 2018 17:32:57 +0100 Subject: Handle failing to connect to eslint_d --- test/handler/test_eslint_handler.vader | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/handler') 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', + \ ]) -- cgit v1.2.3