mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-30 16:14:30 +08:00
Support loading eslint from node_modules, re issue #118.
This commit is contained in:
15
test/test_resolve_local_path.vader
Normal file
15
test/test_resolve_local_path.vader
Normal file
@@ -0,0 +1,15 @@
|
||||
Execute(Open a file some directory down):
|
||||
silent! cd /testplugin/test
|
||||
:e! top/middle/bottom/dummy.txt
|
||||
|
||||
Then(We should be able to to find the local version of a file):
|
||||
AssertEqual
|
||||
\ expand('%:p:h:h:h:h') . '/top/example.ini',
|
||||
\ ale#util#ResolveLocalPath(bufnr('%'), 'example.ini', '/global/config.ini')
|
||||
|
||||
Execute(Do nothing):
|
||||
|
||||
Then(We shouldn't find anything for files which don't match):
|
||||
AssertEqual
|
||||
\ '/global/config.ini',
|
||||
\ ale#util#ResolveLocalPath(bufnr('%'), 'missing.ini', '/global/config.ini')
|
||||
Reference in New Issue
Block a user