2019-06-17 11:54:43 +00:00
|
|
|
Before:
|
|
|
|
call ale#assert#SetUpLinterTest('purescript', 'ls')
|
|
|
|
|
|
|
|
After:
|
|
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
|
|
|
|
Execute(should set correct defaults):
|
|
|
|
AssertLinter 'purescript-language-server', ale#Escape('purescript-language-server') . ' --stdio'
|
|
|
|
|
|
|
|
Execute(should set correct LSP values):
|
2021-03-20 22:11:22 +00:00
|
|
|
call ale#test#SetFilename('../test-files/purescript/spago/Foo.purs')
|
2019-06-17 11:54:43 +00:00
|
|
|
|
|
|
|
AssertLSPLanguage 'purescript'
|
|
|
|
AssertLSPOptions {}
|
|
|
|
AssertLSPConfig {}
|
2021-03-20 22:11:22 +00:00
|
|
|
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/purescript/spago')
|
2019-06-17 11:54:43 +00:00
|
|
|
|
|
|
|
Execute(should set correct project for bower):
|
2021-03-20 22:11:22 +00:00
|
|
|
call ale#test#SetFilename('../test-files/purescript/bower/Foo.purs')
|
2019-06-17 11:54:43 +00:00
|
|
|
|
2021-03-20 22:11:22 +00:00
|
|
|
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/purescript/bower')
|
2019-06-17 11:54:43 +00:00
|
|
|
|
|
|
|
Execute(should set correct project for psc-package):
|
2021-03-20 22:11:22 +00:00
|
|
|
call ale#test#SetFilename('../test-files/purescript/psc-package/Foo.purs')
|
2019-06-17 11:54:43 +00:00
|
|
|
|
2021-03-20 22:11:22 +00:00
|
|
|
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/purescript/psc-package')
|
2019-06-17 11:54:43 +00:00
|
|
|
|
|
|
|
Execute(should accept configuration settings):
|
|
|
|
AssertLSPConfig {}
|
|
|
|
let b:ale_purescript_ls_config = {'purescript': {'addSpagoSources': v:true}}
|
|
|
|
AssertLSPConfig {'purescript': {'addSpagoSources': v:true}}
|