2017-07-31 00:51:08 +00:00
|
|
|
Before:
|
|
|
|
call ale#test#SetDirectory('/testplugin/test/fixers')
|
|
|
|
|
|
|
|
After:
|
|
|
|
call ale#test#RestoreDirectory()
|
|
|
|
|
2017-10-01 19:23:41 +00:00
|
|
|
Execute(The executable path should be correct):
|
2017-07-31 00:51:08 +00:00
|
|
|
call ale#test#SetFilename('../eslint-test-files/react-app/subdir/testfile.css')
|
|
|
|
|
|
|
|
AssertEqual
|
|
|
|
\ {
|
|
|
|
\ 'read_temporary_file': 1,
|
2017-10-01 19:23:41 +00:00
|
|
|
\ 'command': (has('win32') ? 'node.exe ' : '')
|
2017-12-19 18:23:09 +00:00
|
|
|
\ . ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/react-app/node_modules/stylelint/bin/stylelint.js'))
|
2017-07-31 00:51:08 +00:00
|
|
|
\ . ' --fix %t',
|
|
|
|
\ },
|
|
|
|
\ ale#fixers#stylelint#Fix(bufnr(''))
|