#3633 - Put all dummy test files in test/test-files

This commit is contained in:
w0rp
2021-03-20 22:11:22 +00:00
parent 3838ae118d
commit b1d833417b
581 changed files with 1027 additions and 1123 deletions

View File

@@ -11,23 +11,23 @@ After:
call ale#linter#Reset()
Execute(local executable should be detected correctly):
call ale#test#SetFilename('jsonlint-test-files/app/src/app.json')
call ale#test#SetFilename('test-files/jsonlint/app/src/app.json')
AssertEqual
\ ale#path#Simplify(g:dir . '/jsonlint-test-files/app/node_modules/.bin/jsonlint'),
\ 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('jsonlint-test-files/app-without-jsonlint/src/app.json')
call ale#test#SetFilename('test-files/jsonlint/app-without-jsonlint/src/app.json')
AssertEqual
\ ale#path#Simplify(g:dir . '/jsonlint-test-files/node_modules/jsonlint/lib/cli.js'),
\ 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('jsonlint-test-files/app/src/app.json')
call ale#test#SetFilename('test-files/jsonlint/app/src/app.json')
AssertEqual
\ 'jsonlint',
@@ -37,7 +37,7 @@ 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('jsonlint-test-files/app/src/app.json')
call ale#test#SetFilename('test-files/jsonlint/app/src/app.json')
AssertEqual
\ 'custom_jsonlint',