diff options
author | Aryeh Leib Taurog <git@aryehleib.com> | 2019-01-01 21:37:42 +0200 |
---|---|---|
committer | Aryeh Leib Taurog <git@aryehleib.com> | 2019-01-04 09:55:35 +0200 |
commit | bbf02d837e3a501c6acaca51b257672198d35591 (patch) | |
tree | 72406d4b01abe3b0fa7f101fba09f1a23195f5c9 | |
parent | 08606b88d001b2f94097d6d9828fe622e68b2064 (diff) | |
download | ale-bbf02d837e3a501c6acaca51b257672198d35591.zip |
test elm-make changes to rootdir when elm.json is found
most projects will have an elm.json file (>= 0.19) or elm-package.json (< 0.19)
-rw-r--r-- | test/command_callback/test_elm_make_command_callback.vader | 9 | ||||
-rw-r--r-- | test/elm-test-files/app/elm.json | 0 |
2 files changed, 6 insertions, 3 deletions
diff --git a/test/command_callback/test_elm_make_command_callback.vader b/test/command_callback/test_elm_make_command_callback.vader index 6d95676f..9e3ce214 100644 --- a/test/command_callback/test_elm_make_command_callback.vader +++ b/test/command_callback/test_elm_make_command_callback.vader @@ -12,7 +12,8 @@ Execute(should get valid executable with default params): let g:executable = ale#path#Simplify(g:dir . '/../elm-test-files/app/node_modules/.bin/elm') AssertLinter g:executable, - \ ale#Escape(g:executable) . ' make --report=json --output=/dev/null %t' + \ 'cd ' . ale#Escape(ale#path#Simplify(g:dir . '/../elm-test-files/app')) . ' && ' + \ . ale#Escape(g:executable) . ' make --report=json --output=/dev/null %t' Execute(should get valid executable with 'use_global' params): let g:ale_elm_make_use_global = 1 @@ -20,7 +21,8 @@ Execute(should get valid executable with 'use_global' params): call ale#test#SetFilename('../elm-test-files/app/testfile.elm') AssertLinter 'elm', - \ ale#Escape('elm') . ' make --report=json --output=/dev/null %t' + \ 'cd ' . ale#Escape(ale#path#Simplify(g:dir . '/../elm-test-files/app')) . ' && ' + \ . ale#Escape('elm') . ' make --report=json --output=/dev/null %t' Execute(should get valid executable with 'use_global' and 'executable' params): let g:ale_elm_make_executable = 'other-elm' @@ -29,4 +31,5 @@ Execute(should get valid executable with 'use_global' and 'executable' params): call ale#test#SetFilename('../elm-test-files/app/testfile.elm') AssertLinter 'other-elm', - \ ale#Escape('other-elm') . ' make --report=json --output=/dev/null %t' + \ 'cd ' . ale#Escape(ale#path#Simplify(g:dir . '/../elm-test-files/app')) . ' && ' + \ . ale#Escape('other-elm') . ' make --report=json --output=/dev/null %t' diff --git a/test/elm-test-files/app/elm.json b/test/elm-test-files/app/elm.json new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/elm-test-files/app/elm.json |