Group handler test cases in a directory

This commit is contained in:
w0rp
2017-03-06 23:32:48 +00:00
parent 75a2dc5ff5
commit 663d8f832f
13 changed files with 2 additions and 1 deletions

View File

@@ -0,0 +1,38 @@
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, [
\ '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()