blob: 8245337e7bc120eefdccb8f17f98e6aee3d8e536 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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
\ '''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
\ '''foobar'' --reporter inline --no-colors -',
\ ale_linters#javascript#jscs#GetCommand(bufnr(''))
|