ale/test/fixers/test_standard_fixer_callbac...

18 lines
524 B
Plaintext
Raw Normal View History

2017-07-21 01:25:28 +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-21 01:25:28 +00:00
call ale#test#SetFilename('../eslint-test-files/react-app/subdir/testfile.js')
AssertEqual
\ {
\ 'read_temporary_file': 1,
2017-10-01 19:23:41 +00:00
\ 'command': (has('win32') ? 'node.exe ' : '')
\ . ale#Escape(ale#path#Winify(g:dir . '/../eslint-test-files/react-app/node_modules/standard/bin/cmd.js'))
2017-07-21 01:25:28 +00:00
\ . ' --fix %t',
\ },
\ ale#fixers#standard#Fix(bufnr(''))