summaryrefslogtreecommitdiff
path: root/test/fixers
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-08-31 13:12:24 +0100
committerw0rp <devw0rp@gmail.com>2017-08-31 13:12:24 +0100
commit7c2a5052a850a6e7df10c2b4f84fd5b343175d8d (patch)
tree97225111667373635892128784b34cd854379cdd /test/fixers
parent1d86a724f2f54212d1230fcb2195220f5b3727f9 (diff)
downloadale-7c2a5052a850a6e7df10c2b4f84fd5b343175d8d.zip
Fix #895 - Run Node.js scripts with node.exe instead of node on Windows
Diffstat (limited to 'test/fixers')
-rw-r--r--test/fixers/test_eslint_fixer_callback.vader2
-rw-r--r--test/fixers/test_standard_fixer_callback.vader2
-rw-r--r--test/fixers/test_stylelint_fixer_callback.vader2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/fixers/test_eslint_fixer_callback.vader b/test/fixers/test_eslint_fixer_callback.vader
index 58f75611..218461db 100644
--- a/test/fixers/test_eslint_fixer_callback.vader
+++ b/test/fixers/test_eslint_fixer_callback.vader
@@ -26,7 +26,7 @@ Execute(The eslint fixer with eslint.js should be run with node on Windows):
AssertEqual
\ {
\ 'read_temporary_file': 1,
- \ 'command': 'node '
+ \ 'command': ale#Escape('node.exe') . ' '
\ . ale#Escape(simplify(g:dir . '/../eslint-test-files/react-app/node_modules/eslint/bin/eslint.js'))
\ . ' --config ' . ale#Escape(simplify(g:dir . '/../eslint-test-files/react-app/.eslintrc.js'))
\ . ' --fix %t',
diff --git a/test/fixers/test_standard_fixer_callback.vader b/test/fixers/test_standard_fixer_callback.vader
index 934b07b8..88169bbb 100644
--- a/test/fixers/test_standard_fixer_callback.vader
+++ b/test/fixers/test_standard_fixer_callback.vader
@@ -25,7 +25,7 @@ Execute(The standard fixer with standard.js should be run with node on Windows):
AssertEqual
\ {
\ 'read_temporary_file': 1,
- \ 'command': 'node '
+ \ 'command': ale#Escape('node.exe') . ' '
\ . ale#Escape(simplify(g:dir . '/../eslint-test-files/react-app/node_modules/standard/bin/cmd.js'))
\ . ' --fix %t',
\ },
diff --git a/test/fixers/test_stylelint_fixer_callback.vader b/test/fixers/test_stylelint_fixer_callback.vader
index 6c991969..482704d4 100644
--- a/test/fixers/test_stylelint_fixer_callback.vader
+++ b/test/fixers/test_stylelint_fixer_callback.vader
@@ -25,7 +25,7 @@ Execute(The stylelint fixer with stylelint.js should be run with node on Windows
AssertEqual
\ {
\ 'read_temporary_file': 1,
- \ 'command': 'node '
+ \ 'command': ale#Escape('node.exe') . ' '
\ . ale#Escape(simplify(g:dir . '/../eslint-test-files/react-app/node_modules/stylelint/bin/stylelint.js'))
\ . ' --fix %t',
\ },