summaryrefslogtreecommitdiff
path: root/test/linter/test_jshint.vader
blob: 517c957cdf0c8b5f8b8e9e4843b5f7aad4fddd0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Before:
  Save g:ale_jshint_config_loc

  unlet! g:ale_jshint_config_loc

  call ale#assert#SetUpLinterTest('javascript', 'jshint')

After:
  call ale#assert#TearDownLinterTest()

Execute(The default command should be correct):
  AssertLinter 'jshint', ale#Escape('jshint') . ' --reporter unix --extract auto --filename %s -'

Execute(Setting a config location should add the config parameter):
  let g:ale_jshint_config_loc = '/some/file'

  AssertLinter 'jshint', ale#Escape('jshint') . ' --reporter unix --extract auto --config ' . ale#Escape('/some/file') . ' --filename %s -'