All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 Save g:ale_deno_import_map
3 Save g:ale_deno_unstable
4 Save g:ale_deno_executable
5 Save g:ale_deno_lsp_project_root
7 let g:ale_deno_import_map = 'import_map.json'
8 let g:ale_deno_unstable = 0
9 let g:ale_deno_executable = 'deno'
10 let g:ale_deno_lsp_project_root = ''
12 runtime autoload/ale/handlers/deno.vim
13 call ale#assert#SetUpLinterTest('javascript', 'deno')
16 call ale#assert#TearDownLinterTest()
18 Execute(Should set deno lsp for JavaScript projects using stable Deno API):
22 \ 'unstable': v:false,
26 Execute(Should set deno lsp using unstable Deno API if enabled by user):
27 let g:ale_deno_unstable = 1
36 Execute(Should set the default importMap filepath):
37 call ale#test#SetFilename('../test-files/javascript_deno/main.js')
42 \ 'unstable': v:false,
43 \ 'importMap': ale#path#Simplify(g:dir . '/../test-files/javascript_deno/import_map.json')
46 Execute(Should set the importMap filepath from user defined importMap):
47 let g:ale_deno_import_map = 'custom_import_map.json'
48 call ale#test#SetFilename('../test-files/javascript_deno/main.js')
53 \ 'unstable': v:false,
54 \ 'importMap': ale#path#Simplify(g:dir . '/../test-files/javascript_deno/custom_import_map.json')
57 Execute(Should set the importMap filepath from user defined importMap with unstable API):
58 let g:ale_deno_import_map = 'custom_import_map.json'
59 let g:ale_deno_unstable = 1
60 call ale#test#SetFilename('../test-files/javascript_deno/main.js')
66 \ 'importMap': ale#path#Simplify(g:dir . '/../test-files/javascript_deno/custom_import_map.json')
69 Execute(Should find project root containing tsconfig.json):
70 call ale#test#SetFilename('../test-files/javascript_deno/main.js')
72 AssertLSPLanguage 'javascript'
73 AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/javascript_deno')
75 Execute(Should use user-specified project root):
76 let g:ale_deno_lsp_project_root = '/'
78 call ale#test#SetFilename('../test-files/javascript_deno/main.js')
80 AssertLSPLanguage 'javascript'
83 Execute(Check Deno LSP command):
84 AssertLinter 'deno', ale#Escape('deno') . ' lsp'