mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-09 21:12:31 +08:00
purs-tidy for PureScript (#3863)
* purs-tidy * update email address for toastal
This commit is contained in:
21
test/fixers/test_purs_tidy_fixer_callback.vader
Normal file
21
test/fixers/test_purs_tidy_fixer_callback.vader
Normal file
@@ -0,0 +1,21 @@
|
||||
Before:
|
||||
Save g:ale_purescript_tidy_executable
|
||||
Save g:ale_purescript_tidy_options
|
||||
|
||||
" Use an invalid global executable, so we don’t match it.
|
||||
let g:ale_purescript_tidy_executable = 'odd-purs-tidy'
|
||||
let g:ale_purescript_tidy_options = '--indent 3'
|
||||
|
||||
call ale#assert#SetUpFixerTest('purescript', 'purs-tidy')
|
||||
|
||||
After:
|
||||
call ale#assert#TearDownFixerTest()
|
||||
|
||||
Execute(The purs-tidy callback should return the correct custom options):
|
||||
AssertFixer
|
||||
\ {
|
||||
\ 'command': ale#Escape('odd-purs-tidy')
|
||||
\ . ' --indent 3'
|
||||
\ . ' %s',
|
||||
\ 'read_temporary_file': 0,
|
||||
\ }
|
||||
Reference in New Issue
Block a user