mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-20 10:02:57 +08:00
31 lines
1020 B
Plaintext
31 lines
1020 B
Plaintext
Before:
|
|
call ale#assert#SetUpFixerTest('javascript', 'biome')
|
|
runtime autoload/ale/handlers/biome.vim
|
|
set filetype=javascript
|
|
|
|
After:
|
|
call ale#assert#TearDownFixerTest()
|
|
|
|
Execute(The biome callback should return the correct default values):
|
|
call ale#test#SetFilename('../test-files/biome/src/test.js')
|
|
|
|
AssertFixer
|
|
\ {
|
|
\ 'read_temporary_file': 1,
|
|
\ 'command': (has('win32') ? 'node.exe ' : '')
|
|
\ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/biome/node_modules/.bin/biome'))
|
|
\ . ' check --apply %t',
|
|
\ }
|
|
|
|
Execute(The biome callback should include custom biome options):
|
|
let b:ale_javascript_biome_options = '--organize-imports-enabled=true'
|
|
call ale#test#SetFilename('../test-files/biome/src/test.js')
|
|
|
|
AssertFixer
|
|
\ {
|
|
\ 'read_temporary_file': 1,
|
|
\ 'command': (has('win32') ? 'node.exe ' : '')
|
|
\ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/biome/node_modules/.bin/biome'))
|
|
\ . ' check --apply --organize-imports-enabled=true %t',
|
|
\ }
|