2019-06-08 23:12:11 +00:00
|
|
|
Before:
|
|
|
|
call ale#assert#SetUpLinterTest('reason', 'ls')
|
|
|
|
|
|
|
|
After:
|
|
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
|
|
|
|
Execute(The linter should not be run by default):
|
|
|
|
AssertLinterNotExecuted
|
|
|
|
|
|
|
|
Execute(The executable should be configurable):
|
|
|
|
let b:ale_reason_ls_executable = 'foobar'
|
|
|
|
|
|
|
|
AssertLinter 'foobar', ale#Escape('foobar')
|
|
|
|
|
|
|
|
Execute(There should be no default project root):
|
|
|
|
AssertLSPProject ''
|
|
|
|
|
|
|
|
Execute(The project root should be detected using bsconfig.json):
|
2021-03-20 22:11:22 +00:00
|
|
|
call ale#test#SetFilename('../test-files/reasonml/test.ml')
|
2019-06-08 23:12:11 +00:00
|
|
|
|
2021-03-20 22:11:22 +00:00
|
|
|
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/reasonml')
|