summaryrefslogtreecommitdiff
path: root/test/linter/test_bicep_az_bicep.vader
blob: b5dee48e461b64a05a84a4e8191f3cab9ad98527 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Before:
  call ale#assert#SetUpLinterTest('bicep', 'az_bicep')

After:
  call ale#assert#TearDownLinterTest()

Execute(The default command should be correct):
  if has('win32')
      AssertLinter 'az', ale#Escape('az') . ' bicep build --outfile NUL --file %s '
  else
      AssertLinter 'az', ale#Escape('az') . ' bicep build --outfile /dev/null --file %s '
  endif

Execute(The executable should be configurable):
  let g:ale_bicep_az_bicep_executable = 'foobar'

  if has('win32')
      AssertLinter 'foobar', ale#Escape('foobar') . ' bicep build --outfile NUL --file %s '
  else
      AssertLinter 'foobar', ale#Escape('foobar') . ' bicep build --outfile /dev/null --file %s '
  endif