From d2806fad600e361e5b419e528c0e999bb4ac9b7f Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 21 Jun 2017 11:15:05 +0100 Subject: Fix the standard and xo handlers so they call the eslint function --- test/handler/test_standard_handler.vader | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'test/handler/test_standard_handler.vader') diff --git a/test/handler/test_standard_handler.vader b/test/handler/test_standard_handler.vader index 4a69c211..59ebe531 100644 --- a/test/handler/test_standard_handler.vader +++ b/test/handler/test_standard_handler.vader @@ -1,38 +1,29 @@ Execute(The standard handler should parse lines correctly): - runtime ale_linters/javascript/standard.vim - AssertEqual \ [ \ { - \ 'bufnr': 347, \ 'lnum': 47, \ 'col': 14, \ 'text': 'Expected indentation of 2 spaces but found 4.', \ 'type': 'E', \ }, \ { - \ 'bufnr': 347, \ 'lnum': 56, \ 'col': 41, \ 'text': 'Strings must use singlequote.', \ 'type': 'E', \ }, \ { - \ 'bufnr': 347, \ 'lnum': 13, \ 'col': 3, \ 'text': 'Parsing error: Unexpected token', \ 'type': 'E', \ }, \ ], - \ ale_linters#javascript#standard#Handle(347, [ + \ ale#handlers#eslint#Handle(347, [ \ 'This line should be ignored completely', \ '/path/to/some-filename.js:47:14: Expected indentation of 2 spaces but found 4.', \ '/path/to/some-filename.js:56:41: Strings must use singlequote.', \ 'This line should be ignored completely', \ '/path/to/some-filename.js:13:3: Parsing error: Unexpected token', \ ]) - -After: - call ale#linter#Reset() - -- cgit v1.2.3