linters/xo: fix tests

This commit is contained in:
Charles B Johnson
2021-01-19 23:08:10 -06:00
parent 4edfac4db6
commit 5fd5fa5305
2 changed files with 4 additions and 2 deletions

View File

@@ -1,8 +1,9 @@
Before: Before:
call ale#assert#SetUpLinterTest('javascript', 'xo') call ale#assert#SetUpLinterTest('javascript', 'xo')
call ale#test#SetFilename('testfile.js') call ale#test#SetFilename('testfile.jsx')
unlet! b:executable unlet! b:executable
set filetype=javascriptreact
runtime autoload/ale/handlers/xo.vim runtime autoload/ale/handlers/xo.vim
After: After:

View File

@@ -1,8 +1,9 @@
Before: Before:
call ale#assert#SetUpLinterTest('typescript', 'xo') call ale#assert#SetUpLinterTest('typescript', 'xo')
call ale#test#SetFilename('testfile.ts') call ale#test#SetFilename('testfile.tsx')
unlet! b:executable unlet! b:executable
set filetype=typescriptreact
runtime autoload/ale/handlers/xo.vim runtime autoload/ale/handlers/xo.vim
After: After: