]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/test/linter/test_jsonlint.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:

Merge commit '76265755a1add77121c8f9dabb3e9bb70fe9a972' as '.vim/bundle/ale'
[etc/vim.git] / .vim / bundle / ale / test / linter / test_jsonlint.vader
1 Before:
2   call ale#assert#SetUpLinterTest('json', 'jsonlint')
3
4 After:
5   call ale#assert#TearDownLinterTest()
6
7 Execute(local executable should be detected correctly):
8   call ale#test#SetFilename('../test-files/jsonlint/app/src/app.json')
9
10   AssertEqual
11   \ ale#path#Simplify(g:dir . '/../test-files/jsonlint/app/node_modules/.bin/jsonlint'),
12   \ ale_linters#json#jsonlint#GetExecutable(bufnr(''))
13   \
14 Execute(use_global should override project executable):
15   let g:ale_json_jsonlint_use_global = 1
16
17   call ale#test#SetFilename('../test-files/jsonlint/app/src/app.json')
18
19   AssertEqual
20   \ 'jsonlint',
21   \ ale_linters#json#jsonlint#GetExecutable(bufnr(''))
22   \
23 Execute(manually defined should override default executable):
24   let g:ale_json_jsonlint_use_global = 1
25   let g:ale_json_jsonlint_executable = 'custom_jsonlint'
26
27   call ale#test#SetFilename('../test-files/jsonlint/app/src/app.json')
28
29   AssertEqual
30   \ 'custom_jsonlint',
31   \ ale_linters#json#jsonlint#GetExecutable(bufnr(''))