diff options
author | w0rp <devw0rp@gmail.com> | 2017-08-20 00:05:15 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-08-20 00:05:15 +0100 |
commit | 7112776d1b04d2cb01a1b01c0edfa5b86ed88e99 (patch) | |
tree | 423cb978a7e7e680013dd819b2bf20721eede77d /test/handler | |
parent | fb0adc602e13fb9d7ee41bb1d3303fdc6bfb45f5 (diff) | |
download | ale-7112776d1b04d2cb01a1b01c0edfa5b86ed88e99.zip |
#653 Update tslint to set the filename key for problems in other files
Diffstat (limited to 'test/handler')
-rw-r--r-- | test/handler/test_tslint_handler.vader | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/test/handler/test_tslint_handler.vader b/test/handler/test_tslint_handler.vader index a27657eb..5c8679a4 100644 --- a/test/handler/test_tslint_handler.vader +++ b/test/handler/test_tslint_handler.vader @@ -15,28 +15,40 @@ Execute(The tslint handler should parse lines correctly): \ { \ 'lnum': 1, \ 'col': 15, + \ 'filename': expand('%:p:h') . '/test.ts', \ 'end_lnum': 1, - \ 'end_col': 15, - \ 'text': 'semicolon: Missing semicolon', \ 'type': 'E', + \ 'end_col': 15, + \ 'text': 'semicolon: Missing semicolon' \ }, \ { \ 'lnum': 2, \ 'col': 8, + \ 'filename': expand('%:p:h') . '/test.ts', \ 'end_lnum': 3, + \ 'type': 'W', \ 'end_col': 12, - \ 'text': 'Something else', + \ 'text': 'Something else' + \ }, + \ { + \ 'lnum': 2, + \ 'col': 8, + \ 'filename': expand('%:p:h') . '/something-else.ts', + \ 'end_lnum': 3, \ 'type': 'W', + \ 'end_col': 12, + \ 'text': 'something: Something else' \ }, \ { \ 'lnum': 31, \ 'col': 9, + \ 'filename': expand('%:p:h') . '/test.ts', \ 'end_lnum': 31, - \ 'end_col': 20, - \ 'text': 'no-console: Calls to console.log are not allowed.', \ 'type': 'E', + \ 'end_col': 20, + \ 'text': 'no-console: Calls to console.log are not allowed.' \ }, - \ ], + \ ] , \ ale_linters#typescript#tslint#Handle(bufnr(''), [json_encode([ \ { \ 'endPosition': { @@ -50,7 +62,7 @@ Execute(The tslint handler should parse lines correctly): \ 'innerStart': 14, \ 'innerText': ';' \ }, - \ 'name': 'app/test.ts', + \ 'name': 'test.ts', \ 'ruleName': 'semicolon', \ 'ruleSeverity': 'ERROR', \ 'startPosition': { @@ -71,7 +83,7 @@ Execute(The tslint handler should parse lines correctly): \ 'innerStart': 14, \ 'innerText': ';' \ }, - \ 'name': 'app/test.ts', + \ 'name': 'test.ts', \ 'ruleSeverity': 'WARNING', \ 'startPosition': { \ 'character': 7, @@ -91,7 +103,7 @@ Execute(The tslint handler should parse lines correctly): \ 'innerStart': 14, \ 'innerText': ';' \ }, - \ 'name': 'app/something-else.ts', + \ 'name': 'something-else.ts', \ 'ruleName': 'something', \ 'ruleSeverity': 'WARNING', \ 'startPosition': { @@ -107,7 +119,7 @@ Execute(The tslint handler should parse lines correctly): \ "position": 14590 \ }, \ "failure": "Calls to console.log are not allowed.", - \ 'name': 'app/test.ts', + \ 'name': 'test.ts', \ "ruleName": "no-console", \ "startPosition": { \ "character": 8, |