summaryrefslogtreecommitdiff
path: root/test/fixers/test_stylelint_fixer_callback.vader
blob: a0fc6ff4912894043aa2d44d2fbd2d5b46668efc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Before:
  call ale#test#SetDirectory('/testplugin/test/fixers')

After:
  call ale#test#RestoreDirectory()

Execute(The executable path should be correct):
  call ale#test#SetFilename('../eslint-test-files/react-app/subdir/testfile.css')

  AssertEqual
  \ {
  \   'read_temporary_file': 1,
  \   'command': (has('win32') ? 'node.exe ' : '')
  \     . ale#Escape(ale#path#Winify(g:dir . '/../eslint-test-files/react-app/node_modules/stylelint/bin/stylelint.js'))
  \     . ' --fix %t',
  \ },
  \ ale#fixers#stylelint#Fix(bufnr(''))