mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-08 21:44:47 +08:00
Fix paths for running tests on Windows
This commit is contained in:
@@ -61,7 +61,7 @@ Execute(The local executable from .bin should be used if available):
|
|||||||
\ ale#handlers#textlint#GetExecutable(bufnr(''))
|
\ ale#handlers#textlint#GetExecutable(bufnr(''))
|
||||||
|
|
||||||
AssertEqual
|
AssertEqual
|
||||||
\ ale#Escape(g:dir . '/textlint_paths/with_bin_path/node_modules/.bin/textlint') . ' -f json %t',
|
\ ale#Escape(ale#path#Simplify(g:dir . '/textlint_paths/with_bin_path/node_modules/.bin/textlint')) . ' -f json %t',
|
||||||
\ ale#handlers#textlint#GetCommand(bufnr(''))
|
\ ale#handlers#textlint#GetCommand(bufnr(''))
|
||||||
|
|
||||||
Execute(The local executable from textlint/bin should be used if available):
|
Execute(The local executable from textlint/bin should be used if available):
|
||||||
@@ -73,11 +73,11 @@ Execute(The local executable from textlint/bin should be used if available):
|
|||||||
|
|
||||||
if has('win32')
|
if has('win32')
|
||||||
AssertEqual
|
AssertEqual
|
||||||
\ ale#Escape('node.exe') . ' ' . ale#Escape(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js') . ' -f json %t',
|
\ ale#Escape('node.exe') . ' ' . ale#Escape(ale#path#Simplify(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js')) . ' -f json %t',
|
||||||
\ ale#handlers#textlint#GetCommand(bufnr(''))
|
\ ale#handlers#textlint#GetCommand(bufnr(''))
|
||||||
else
|
else
|
||||||
AssertEqual
|
AssertEqual
|
||||||
\ ale#Escape(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js') . ' -f json %t',
|
\ ale#Escape(ale#path#Simplify(g:dir . '/textlint_paths/with_textlint_bin_path/node_modules/textlint/bin/textlint.js')) . ' -f json %t',
|
||||||
\ ale#handlers#textlint#GetCommand(bufnr(''))
|
\ ale#handlers#textlint#GetCommand(bufnr(''))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -86,6 +86,6 @@ Execute(Configuration files should be discovered):
|
|||||||
|
|
||||||
AssertEqual
|
AssertEqual
|
||||||
\ ale#Escape('textlint')
|
\ ale#Escape('textlint')
|
||||||
\ . ' -c ' . ale#Escape(g:dir . '/textlint_paths/with_config_path/.textlintrc')
|
\ . ' -c ' . ale#Escape(ale#path#Simplify(g:dir . '/textlint_paths/with_config_path/.textlintrc'))
|
||||||
\ . ' -f json %t',
|
\ . ' -f json %t',
|
||||||
\ ale#handlers#textlint#GetCommand(bufnr(''))
|
\ ale#handlers#textlint#GetCommand(bufnr(''))
|
||||||
|
|||||||
Reference in New Issue
Block a user