Pass --compiler flag to elm-test when linting 0.19 tests

This makes elm make linter work when elm is not installed globally.
This commit is contained in:
Rafał Cieślak
2019-01-19 22:04:41 +01:00
parent d1fc084b2d
commit 9c0c6efbd0
2 changed files with 15 additions and 2 deletions

View File

@@ -22,7 +22,8 @@ Execute(should get elm-test executable for test code with elm >= 0.19):
AssertLinter g:executable,
\ 'cd ' . ale#Escape(ale#path#Simplify(g:dir . '/../elm-test-files/newapp')) . ' && '
\ . ale#Escape(g:executable) . ' make --report=json --output=/dev/null %t'
\ . ale#Escape(g:executable) . ' make --report=json --output=/dev/null --compiler '
\ . ale#path#Simplify(g:dir . '/../elm-test-files/newapp/node_modules/.bin/elm') . ' %t'
Execute(should fallback to elm executable with elm >= 0.19):
call ale#test#SetFilename('../elm-test-files/newapp-notests/tests/TestMain.elm')