summaryrefslogtreecommitdiff
path: root/test/lsp
diff options
context:
space:
mode:
authorNils Kuhnhenn <lain@volafile.org>2019-06-02 09:35:31 +0200
committerNils Kuhnhenn <lain@volafile.org>2019-06-02 14:39:03 +0200
commit79d1b99067878bbec129cfd29a7c9587c276dec6 (patch)
tree0e4622fe0d7a8d71d7018840c86ee0aeb2aee662 /test/lsp
parent135de34d224a6dd5a7a16b44e84e603a6609b34f (diff)
downloadale-79d1b99067878bbec129cfd29a7c9587c276dec6.zip
Use JSON output for eslint and fix tsserver column
Diffstat (limited to 'test/lsp')
-rw-r--r--test/lsp/test_read_lsp_diagnostics.vader6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lsp/test_read_lsp_diagnostics.vader b/test/lsp/test_read_lsp_diagnostics.vader
index 377e73d9..61ffc73f 100644
--- a/test/lsp/test_read_lsp_diagnostics.vader
+++ b/test/lsp/test_read_lsp_diagnostics.vader
@@ -219,7 +219,7 @@ Execute(ale#lsp#response#ReadTSServerDiagnostics() should handle tsserver respon
\ 'lnum': 1,
\ 'col': 11,
\ 'end_lnum': 1,
- \ 'end_col': 17,
+ \ 'end_col': 16,
\ },
\ ],
\ ale#lsp#response#ReadTSServerDiagnostics({"seq":0,"type":"event","event":"semanticDiag","body":{"file":"/bar/foo.ts","diagnostics":[{"start":{"line":1,"offset":11},"end":{"line":1,"offset":17},"text":"Operator ''+'' cannot be applied to types ''3'' and ''{}''.","code":2365}]}})
@@ -234,7 +234,7 @@ Execute(ale#lsp#response#ReadTSServerDiagnostics() should handle warnings from t
\ 'code': '2515',
\ 'end_lnum': 27,
\ 'type': 'W',
- \ 'end_col': 14,
+ \ 'end_col': 13,
\ 'text': 'Calls to ''console.log'' are not allowed. (no-console)',
\ }
\ ],
@@ -250,7 +250,7 @@ Execute(ale#lsp#response#ReadTSServerDiagnostics() should handle suggestions fro
\ 'code': '2515',
\ 'end_lnum': 27,
\ 'type': 'I',
- \ 'end_col': 14,
+ \ 'end_col': 13,
\ 'text': 'Some info',
\ }
\ ],