20 lines
488 B
Text
20 lines
488 B
Text
|
Before:
|
||
|
call ale#assert#SetUpFixerTest('javascript', 'prettier_standard')
|
||
|
|
||
|
silent cd ..
|
||
|
silent cd command_callback
|
||
|
let g:dir = getcwd()
|
||
|
|
||
|
After:
|
||
|
call ale#assert#TearDownFixerTest()
|
||
|
|
||
|
Execute(The prettier callback should return the correct default values):
|
||
|
call ale#test#SetFilename('../prettier-test-files/testfile.js')
|
||
|
|
||
|
AssertFixer
|
||
|
\ {
|
||
|
\ 'command': ale#Escape(g:ale_javascript_prettier_standard_executable)
|
||
|
\ . ' --stdin'
|
||
|
\ . ' --stdin-filepath=%s ',
|
||
|
\ }
|