diff options
author | w0rp <devw0rp@gmail.com> | 2023-09-08 01:00:35 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2023-09-08 01:00:35 +0100 |
commit | bf55175b6971a9a706dfb73ddd00b71750aaee80 (patch) | |
tree | 906224bf3752461d25a891dfd0c8261efd4a1480 /test/test_jsonlint_executable_detection.vader | |
parent | e5816964d1ce27c1dcf3497ba80beccd99bc8fd6 (diff) | |
download | ale-bf55175b6971a9a706dfb73ddd00b71750aaee80.zip |
#4454 Clean up root test directory tests
Combine cases into smaller tests of tests and remove tests we no longer
need. Linter tests have been moved to where they should be.
Diffstat (limited to 'test/test_jsonlint_executable_detection.vader')
-rw-r--r-- | test/test_jsonlint_executable_detection.vader | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/test/test_jsonlint_executable_detection.vader b/test/test_jsonlint_executable_detection.vader deleted file mode 100644 index 60bc6d75..00000000 --- a/test/test_jsonlint_executable_detection.vader +++ /dev/null @@ -1,45 +0,0 @@ -Before: - call ale#test#SetDirectory('/testplugin/test') - - runtime ale_linters/json/jsonlint.vim - -After: - let g:ale_json_jsonlint_executable = 'jsonlint' - let g:ale_json_jsonlint_use_global = 0 - - call ale#test#RestoreDirectory() - call ale#linter#Reset() - -Execute(local executable should be detected correctly): - call ale#test#SetFilename('test-files/jsonlint/app/src/app.json') - - AssertEqual - \ ale#path#Simplify(g:dir . '/test-files/jsonlint/app/node_modules/.bin/jsonlint'), - \ ale_linters#json#jsonlint#GetExecutable(bufnr('')) - -Execute(recursively executable should be detected correctly): - call ale#test#SetFilename('test-files/jsonlint/app-without-jsonlint/src/app.json') - - AssertEqual - \ ale#path#Simplify(g:dir . '/test-files/jsonlint/node_modules/jsonlint/lib/cli.js'), - \ ale_linters#json#jsonlint#GetExecutable(bufnr('')) - -Execute(use_global should override project executable): - let g:ale_json_jsonlint_use_global = 1 - - call ale#test#SetFilename('test-files/jsonlint/app/src/app.json') - - AssertEqual - \ 'jsonlint', - \ ale_linters#json#jsonlint#GetExecutable(bufnr('')) - -Execute(manually defined should override default executable): - let g:ale_json_jsonlint_use_global = 1 - let g:ale_json_jsonlint_executable = 'custom_jsonlint' - - call ale#test#SetFilename('test-files/jsonlint/app/src/app.json') - - AssertEqual - \ 'custom_jsonlint', - \ ale_linters#json#jsonlint#GetExecutable(bufnr('')) - |