]> git.madduck.net Git - etc/vim.git/blob - test/linter/test_json_vscodejson.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Squashed '.vim/bundle/ale/' content from commit 22185c4c
[etc/vim.git] / test / linter / test_json_vscodejson.vader
1 Before:
2     let g:executable_map = {}
3
4     call ale#assert#SetUpLinterTest('json', 'vscodejson')
5
6     runtime autoload/ale/engine.vim
7
8     " Stub out IsExecutable so we can emulate it.
9     function! ale#engine#IsExecutable(buffer, executable) abort
10         return get(g:executable_map, a:executable)
11     endfunction
12
13 After:
14     unlet! g:executable_map
15
16     call ale#assert#TearDownLinterTest()
17
18     runtime autoload/ale/engine.vim
19
20 Execute(The default executable name should be correct):
21     let g:executable_map = {'vscode-json-languageserver': 1}
22
23     AssertLinter 'vscode-json-languageserver', [ale#Escape('vscode-json-languageserver') . ' --stdio']
24
25 Execute(We should fall back on the old executable name):
26     let g:executable_map = {'vscode-json-languageserver': 0}
27
28     AssertLinter 'vscode-json-language-server', [ale#Escape('vscode-json-language-server') . ' --stdio']
29
30 Execute(Executable name should be configurable):
31     let b:ale_json_vscodejson_executable = 'foo'
32
33     AssertLinter 'foo', [ale#Escape('foo') . ' --stdio']