diff options
Diffstat (limited to 'test/fixers/test_biome_fixer_callback.vader')
-rw-r--r-- | test/fixers/test_biome_fixer_callback.vader | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/test/fixers/test_biome_fixer_callback.vader b/test/fixers/test_biome_fixer_callback.vader index 2922b3e6..3d2083e4 100644 --- a/test/fixers/test_biome_fixer_callback.vader +++ b/test/fixers/test_biome_fixer_callback.vader @@ -11,7 +11,7 @@ After: call ale#assert#TearDownFixerTest() Execute(The default biome command should be correct): - call ale#test#SetFilename('../test-files/typescript/test.ts') + call ale#test#SetFilename('../test-files/biome/jsonc/src/test.ts') AssertFixer \ { @@ -21,7 +21,7 @@ Execute(The default biome command should be correct): \ } Execute(Unsafe fixes can be applied via an option): - call ale#test#SetFilename('../test-files/typescript/test.ts') + call ale#test#SetFilename('../test-files/biome/jsonc/src/test.ts') let g:ale_biome_fixer_apply_unsafe = 1 AssertFixer @@ -30,3 +30,14 @@ Execute(Unsafe fixes can be applied via an option): \ 'command': ale#Escape('biome') \ . ' check --apply-unsafe %t' \ } + +Execute(The fixer should accept options): + call ale#test#SetFilename('../test-files/biome/jsonc/src/test.ts') + let g:ale_biome_options = '--foobar' + + AssertFixer + \ { + \ 'read_temporary_file': 1, + \ 'command': ale#Escape('biome') + \ . ' check --apply --foobar %t', + \ } |