mirror of
https://github.com/dense-analysis/ale
synced 2024-12-28 17:12:23 +00:00
18 lines
533 B
Plaintext
18 lines
533 B
Plaintext
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(''))
|