summaryrefslogtreecommitdiff
path: root/test/linter/test_css_csslint.vader
blob: 7bba5bb1d60ba65f517fefc5e9cb0762ad1bb731 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Before:
  call ale#assert#SetUpLinterTest('css', 'csslint')

After:
  call ale#assert#TearDownLinterTest()

Execute(--config should be set when the .csslintrc file is found):
  call ale#test#SetFilename('../test-files/csslint/some-app/subdir/testfile.js')

  AssertLinter 'csslint', 'csslint --format=compact '
  \ . '--config=' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/csslint/some-app/.csslintrc'))
  \ . ' %t'

Execute(--config should not be used when no .csslintrc file exists):
  call ale#test#SetFilename('../test-files/csslint/other-app/testfile.css')

  AssertLinter 'csslint', 'csslint --format=compact  %t'