diff options
author | w0rp <w0rp@users.noreply.github.com> | 2019-03-25 21:41:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-25 21:41:33 +0000 |
commit | 8768a309b8ef1c2e819dcb6f4630f73acab59792 (patch) | |
tree | 81161ed835dde269fb94df88ceb7fa40b0f775a2 /test/command_callback | |
parent | ad998211f892cdbfac6df3ab296a4d1b849f4086 (diff) | |
parent | 8ec96154000031e59d96092efe1ee9fd104ffcd0 (diff) | |
download | ale-8768a309b8ef1c2e819dcb6f4630f73acab59792.zip |
Merge pull request #2378 from antew/feature/elm-lsp-linter
Elm: Support for elm-lsp
Diffstat (limited to 'test/command_callback')
-rw-r--r-- | test/command_callback/test_elm_lsp_command_callbacks.vader | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/command_callback/test_elm_lsp_command_callbacks.vader b/test/command_callback/test_elm_lsp_command_callbacks.vader new file mode 100644 index 00000000..d06ef134 --- /dev/null +++ b/test/command_callback/test_elm_lsp_command_callbacks.vader @@ -0,0 +1,29 @@ +Before: + call ale#assert#SetUpLinterTest('elm', 'elm_lsp') + +After: + call ale#assert#TearDownLinterTest() + +Execute(The default executable path should be correct): + call ale#test#SetFilename('../elm-test-files/newapp/src/Main.elm') + + AssertLinter 'elm-lsp', ale#Escape('elm-lsp') . ' --stdio' + +Execute(The project root should be detected correctly): + AssertLSPProject '' + + call ale#test#SetFilename('../elm-test-files/newapp/src/Main.elm') + + AssertLSPProject ale#path#Simplify(g:dir . '/../elm-test-files/newapp') + +Execute(Should let users configure a global executable and override local paths): + call ale#test#SetFilename('../elm-test-files/newapp/src/Main.elm') + + let g:ale_elm_lsp_executable = '/path/to/custom/elm-lsp' + let g:ale_elm_lsp_use_global = 1 + + AssertLinter '/path/to/custom/elm-lsp', + \ ale#Escape('/path/to/custom/elm-lsp') . ' --stdio' + +Execute(The language should be correct): + AssertLSPLanguage 'elm' |