Support loading eslint from node_modules, re issue #118.
This commit is contained in:
parent
f94865c4ce
commit
36461b69d7
4 changed files with 71 additions and 4 deletions
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')
|
Loading…
Add table
Add a link
Reference in a new issue