blob: c2cd9407d3d4cc5bbe07d51bd33161a93390f014 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
Before:
Save g:ale_biome_options
let g:ale_biome_options = ''
call ale#assert#SetUpLinterTest('typescript', 'biome')
call ale#test#SetFilename('test.ts')
After:
call ale#assert#TearDownLinterTest()
Execute(The default biome command should be correct):
AssertLinter 'biome', ale#Escape('biome') . ' lsp-proxy'
Execute(The biome command should accept options):
let g:ale_biome_options = '--foobar'
AssertLinter 'biome', ale#Escape('biome') . ' lsp-proxy --foobar'
Execute(Uses the filetype as the language):
call ale#test#SetFilename('test.ts')
set filetype=typescript
AssertLSPLanguage 'typescript'
call ale#test#SetFilename('test.tsx')
set filetype=typescriptreact
AssertLSPLanguage 'typescriptreact'
call ale#test#SetFilename('test.js')
set filetype=javascript
AssertLSPLanguage 'javascript'
call ale#test#SetFilename('test.jsx')
set filetype=javascriptreact
AssertLSPLanguage 'javascriptreact'
|