diff options
author | toastal <561087+toastal@users.noreply.github.com> | 2021-08-08 13:09:21 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-08 22:09:21 +0900 |
commit | 775d121d46b2b2cf61997598e4dc664476fd470d (patch) | |
tree | d4f7a63dfd500a511e43b8c20402e4d36ef392e4 /test/fixers | |
parent | a793db7399e786b8c882b10e6a8540718d5cdbf1 (diff) | |
download | ale-775d121d46b2b2cf61997598e4dc664476fd470d.zip |
`purs-tidy` for PureScript (#3863)
* purs-tidy
* update email address for toastal
Diffstat (limited to 'test/fixers')
-rw-r--r-- | test/fixers/test_purs_tidy_fixer_callback.vader | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/fixers/test_purs_tidy_fixer_callback.vader b/test/fixers/test_purs_tidy_fixer_callback.vader new file mode 100644 index 00000000..7debd434 --- /dev/null +++ b/test/fixers/test_purs_tidy_fixer_callback.vader @@ -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, + \ } |