This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/test/command_callback/test_jscs_command_callback.vader

25 lines
714 B
Text

Before:
runtime ale_linters/javascript/jscs.vim
After:
call ale#linter#Reset()
let g:ale_javascript_jscs_executable = 'jscs'
Execute(Should return the correct default values):
AssertEqual
\ 'jscs',
\ ale_linters#javascript#jscs#GetExecutable(bufnr(''))
AssertEqual
\ ale#Escape('jscs') . ' --reporter inline --no-colors -',
\ ale_linters#javascript#jscs#GetCommand(bufnr(''))
Execute(Should allow using a custom executable):
let g:ale_javascript_jscs_executable = 'foobar'
AssertEqual
\ 'foobar',
\ ale_linters#javascript#jscs#GetExecutable(bufnr(''))
AssertEqual
\ ale#Escape('foobar') . ' --reporter inline --no-colors -',
\ ale_linters#javascript#jscs#GetCommand(bufnr(''))