install.fairie/dotfiles/.vim/plugged/ale/test/linter/test_volar.vader
Git E2E Dev Test Username e149692cc9 git subrepo clone https://github.com/dense-analysis/ale.git ./dotfiles/.vim/plugged/ale
subrepo:
  subdir:   "dotfiles/.vim/plugged/ale"
  merged:   "e4b205440"
upstream:
  origin:   "https://github.com/dense-analysis/ale.git"
  branch:   "master"
  commit:   "e4b205440"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2022-10-18 10:37:09 -04:00

27 lines
873 B
Text

Before:
call ale#assert#SetUpLinterTest('vue', 'volar')
let g:tsserver_path = ''
let g:actual_path = ''
let g:init_opts = {}
After:
call ale#assert#TearDownLinterTest()
unlet g:tsserver_path
unlet g:actual_path
unlet g:init_opts
Execute(Assert Volar LSP for Vue Project):
call ale#test#SetFilename('../test-files/volar/src/App.vue')
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/volar')
Execute(Assert proper tsserverlibrary for Volar LSP):
call ale#test#SetFilename('../test-files/volar/src/App.vue')
let g:init_opts = ale_linters#vue#volar#GetInitializationOptions(bufnr(''))
let g:tsserver_path = init_opts.typescript.serverPath
let g:actual_path = ale#path#Simplify(g:dir . '/../test-files/volar/node_modules/typescript/lib/tsserverlibrary.js')
AssertEqual g:tsserver_path, g:actual_path