diff options
author | Jeffrey Lau <9203+zoonfafer@users.noreply.github.com> | 2022-01-07 22:57:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-07 23:57:29 +0900 |
commit | 5087246c8223712fa0097098e910951aba8603fb (patch) | |
tree | 2be44dff3e7c2832e06223cf3a2e2d3e38011c4a /test | |
parent | 76bd0593713004ae38d738874e9e0575aefc88dd (diff) | |
download | ale-5087246c8223712fa0097098e910951aba8603fb.zip |
Add yaml-language-server support for YAML (#2874) (#4029)
Diffstat (limited to 'test')
-rw-r--r-- | test/linter/test_yaml_ls.vader | 21 | ||||
-rw-r--r-- | test/test-files/yaml/test.yaml | 0 |
2 files changed, 21 insertions, 0 deletions
diff --git a/test/linter/test_yaml_ls.vader b/test/linter/test_yaml_ls.vader new file mode 100644 index 00000000..449ce8c3 --- /dev/null +++ b/test/linter/test_yaml_ls.vader @@ -0,0 +1,21 @@ +Before: + call ale#assert#SetUpLinterTest('yaml', 'ls') + +After: + call ale#assert#TearDownLinterTest() + +Execute(should set correct defaults): + AssertLinter 'yaml-language-server', ale#Escape('yaml-language-server') . ' --stdio' + +Execute(should set correct LSP values): + call ale#test#SetFilename('../test-files/yaml/test.yaml') + + AssertLSPLanguage 'yaml' + AssertLSPOptions {} + AssertLSPConfig {} + AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/yaml') + +Execute(should accept configuration settings): + AssertLSPConfig {} + let b:ale_yaml_ls_config = {'yaml': {'hover': v:false, 'completion': v:true}} + AssertLSPConfig {'yaml': {'hover': v:false, 'completion': v:true}} diff --git a/test/test-files/yaml/test.yaml b/test/test-files/yaml/test.yaml new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/test-files/yaml/test.yaml |