diff options
author | w0rp <devw0rp@gmail.com> | 2019-05-24 01:13:52 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2019-05-24 01:13:52 +0100 |
commit | 36c35d840ba90c5069eb514d54a1281d42c3fb26 (patch) | |
tree | 591191b48198e3a3dd80c57d8c8f82dc0affb088 /test/test_ignoring_linters.vader | |
parent | 33b4a905079c0d8ecafc265c0a31b3141b034b87 (diff) | |
download | ale-36c35d840ba90c5069eb514d54a1281d42c3fb26.zip |
Fix LSP tests
Diffstat (limited to 'test/test_ignoring_linters.vader')
-rw-r--r-- | test/test_ignoring_linters.vader | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/test_ignoring_linters.vader b/test/test_ignoring_linters.vader index f2e9e5c9..d758af5c 100644 --- a/test/test_ignoring_linters.vader +++ b/test/test_ignoring_linters.vader @@ -1,3 +1,11 @@ +Before: + Save g:ale_disable_lsp + +After: + Restore + + unlet! b:ale_disable_lsp + Execute(GetList should ignore some invalid values): AssertEqual [], ale#engine#ignore#GetList('', 'foo') AssertEqual [], ale#engine#ignore#GetList('', 0) @@ -98,7 +106,6 @@ Execute(Exclude should handle Dictionaries): \ ) Execute(Exclude should filter LSP linters when g:ale_disable_lsp is set to 1): - let g:ale_disable_lsp = 1 AssertEqual \ [ \ {'name': 'linter1', 'aliases': [], 'lsp': ''}, @@ -116,7 +123,6 @@ Execute(Exclude should filter LSP linters when g:ale_disable_lsp is set to 1): \ ) Execute(Exclude should filter LSP linters when b:ale_disable_lsp is set to 1): - let b:ale_disable_lsp = 1 AssertEqual \ [ \ {'name': 'linter1', 'aliases': [], 'lsp': ''}, @@ -351,7 +357,7 @@ Execute(ale_disable_lsp should be applied for tsserver): AssertEqual [], g:loclist -Execute(ale_disable_lsp should be applied for LSP linters): +Execute(ale_disable_lsp should be applied for LSP linters): call ale#test#SetFilename('filename.py') call ale#engine#InitBufferInfo(bufnr('')) call ale#lsp_linter#SetLSPLinterMap({'347': 'lsplinter'}) |