summaryrefslogtreecommitdiff
path: root/test/linter/test_nix_deadnix.vader
blob: 90416302d13593e83d10d144b1fdcee0541c4229 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Before:
  call ale#assert#SetUpLinterTest('nix', 'deadnix')

After:
  call ale#assert#TearDownLinterTest()

Execute(The deadnix command should be correct):
  AssertLinter 'deadnix', ale#Escape('deadnix') . ' -o json -- %t'

Execute(Additional deadnix options should be configurable):
  let g:ale_nix_deadnix_options = '--foobar'

  AssertLinter 'deadnix',
  \ ale#Escape('deadnix') . ' -o json --foobar -- %t'

Execute(The deadnix command should be configurable):
  let g:ale_nix_deadnix_executable = 'foo/bar'

  AssertLinter 'foo/bar', ale#Escape('foo/bar') . ' -o json -- %t'