addressing missing docs + cleaning up older Dhall files

This commit is contained in:
toastal
2020-09-14 09:20:53 +07:00
parent b32954a46c
commit ed47008710
9 changed files with 20 additions and 67 deletions

View File

@@ -6,22 +6,19 @@ Before:
let g:ale_dhall_executable = 'odd-dhall'
let g:ale_dhall_options = '--ascii'
call ale#test#SetDirectory('/testplugin/test/dhall')
call ale#assert#SetUpFixerTest('dhall-format', 'dhall-format')
After:
Restore
call ale#test#RestoreDirectory()
call ale#assert#TearDownFixerTest()
Execute(The dhall-format callback should return the correct options):
call ale#test#SetFilename('../dhall_files/testfile.dhall')
AssertEqual
AssertFixer
\ {
\ 'command': ale#Escape('odd-dhall')
\ . ' --ascii'
\ . ' format'
\ . ' --inplace %t',
\ 'read_temporary_file': 1,
\ },
\ ale#fixers#dhall_format#Fix(bufnr(''))
\ }