Merge pull request #2225 from ravicious/master

Pass --compiler flag to elm-test when linting 0.19 tests
This commit is contained in:
w0rp
2019-01-27 12:36:22 +00:00
committed by GitHub
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')