mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-16 16:17:12 +08:00
12
test/fixers/test_yamlfmt_fixer_callback.vader
Normal file
12
test/fixers/test_yamlfmt_fixer_callback.vader
Normal file
@@ -0,0 +1,12 @@
|
||||
Before:
|
||||
call ale#assert#SetUpFixerTest('yaml', 'yamlfmt')
|
||||
|
||||
After:
|
||||
Restore
|
||||
|
||||
call ale#assert#TearDownFixerTest()
|
||||
|
||||
Execute(The yamlfmt callback should return the correct default command):
|
||||
AssertEqual
|
||||
\ {'command': ale#Escape('yamlfmt') . ' -in'},
|
||||
\ ale#fixers#yamlfmt#Fix(bufnr(''))
|
||||
Reference in New Issue
Block a user