This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/test/command_callback/test_reason_ls_command_callback.vader

22 lines
583 B
Text
Raw Normal View History

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):
call ale#test#SetFilename('reason_ls_paths/test.ml')
AssertLSPProject ale#path#Simplify(g:dir . '/reason_ls_paths')