diff options
author | Antew <antewcode@gmail.com> | 2019-03-21 00:55:05 -0400 |
---|---|---|
committer | Antew <antewcode@gmail.com> | 2019-03-21 02:55:49 -0400 |
commit | 8ec96154000031e59d96092efe1ee9fd104ffcd0 (patch) | |
tree | 3ff8cb134323c0bfd160e09b362c8c6e29905160 /test/command_callback | |
parent | 80ef7ea2d0b22f0d8de7387a3d5bf6e9e5b72e9d (diff) | |
download | ale-8ec96154000031e59d96092efe1ee9fd104ffcd0.zip |
Add 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' |