blob: da63f7f1d0308d97904a949ffc807c1aacf60fda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
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):
call ale#test#SetFilename('purescript_paths/spago/Foo.purs')
AssertLSPLanguage 'purescript'
AssertLSPOptions {}
AssertLSPConfig {}
AssertLSPProject ale#path#Simplify(g:dir . '/purescript_paths/spago')
Execute(should set correct project for bower):
call ale#test#SetFilename('purescript_paths/bower/Foo.purs')
AssertLSPProject ale#path#Simplify(g:dir . '/purescript_paths/bower')
Execute(should set correct project for psc-package):
call ale#test#SetFilename('purescript_paths/psc-package/Foo.purs')
AssertLSPProject ale#path#Simplify(g:dir . '/purescript_paths/psc-package')
Execute(should accept configuration settings):
AssertLSPConfig {}
let b:ale_purescript_ls_config = {'purescript': {'addSpagoSources': v:true}}
AssertLSPConfig {'purescript': {'addSpagoSources': v:true}}
|