blob: 87690bfeec74a0c621a08ce8eb8bcd4b3a6ff021 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
Before:
Save g:ale_deno_executable
runtime autoload/ale/handlers/deno.vim
After:
unlet! b:ale_deno_executable
call ale#linter#Reset()
Execute(Default executable should be detected correctly):
AssertEqual
\ 'deno',
\ ale#handlers#deno#GetExecutable(bufnr(''))
Execute(User specified executable should override default):
let g:ale_deno_executable = '/path/to/deno-bin'
AssertEqual
\ '/path/to/deno-bin',
\ ale#handlers#deno#GetExecutable(bufnr(''))
|