From 663d8f832fb2d59751722dc9f22f5c44dcc84b31 Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 6 Mar 2017 23:32:48 +0000 Subject: Group handler test cases in a directory --- test/handler/test_eslint_handler.vader | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 test/handler/test_eslint_handler.vader (limited to 'test/handler/test_eslint_handler.vader') diff --git a/test/handler/test_eslint_handler.vader b/test/handler/test_eslint_handler.vader new file mode 100644 index 00000000..692d8b30 --- /dev/null +++ b/test/handler/test_eslint_handler.vader @@ -0,0 +1,37 @@ +Execute(The eslint handler should parse lines correctly): + runtime ale_linters/javascript/eslint.vim + + AssertEqual + \ [ + \ { + \ 'bufnr': 347, + \ 'lnum': 47, + \ 'col': 14, + \ 'text': 'Missing trailing comma. [Warning/comma-dangle]', + \ 'type': 'W', + \ }, + \ { + \ 'bufnr': 347, + \ 'lnum': 56, + \ 'col': 41, + \ 'text': 'Missing semicolon. [Error/semi]', + \ 'type': 'E', + \ }, + \ { + \ 'bufnr': 347, + \ 'lnum': 13, + \ 'col': 3, + \ 'text': 'Parsing error: Unexpected token', + \ 'type': 'E', + \ }, + \ ], + \ ale_linters#javascript#eslint#Handle(347, [ + \ 'This line should be ignored completely', + \ '/path/to/some-filename.js:47:14: Missing trailing comma. [Warning/comma-dangle]', + \ '/path/to/some-filename.js:56:41: Missing semicolon. [Error/semi]', + \ '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