diff options
author | w0rp <devw0rp@gmail.com> | 2017-11-22 17:25:37 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-11-22 17:25:37 +0000 |
commit | 9857e0a4b7cf2a91453c50791b8cf0d9d7994792 (patch) | |
tree | 49de53650e7dfd5d36dd8192baff949b9f03e155 /test | |
parent | 6e65998ca7ebd6eace6313be694100922f2229f4 (diff) | |
download | ale-9857e0a4b7cf2a91453c50791b8cf0d9d7994792.zip |
Fix the eslint_d fixer tests for Windows
Diffstat (limited to 'test')
-rw-r--r-- | test/fixers/test_eslint_fixer_callback.vader | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/fixers/test_eslint_fixer_callback.vader b/test/fixers/test_eslint_fixer_callback.vader index 4ced3a11..8a5eaa4e 100644 --- a/test/fixers/test_eslint_fixer_callback.vader +++ b/test/fixers/test_eslint_fixer_callback.vader @@ -75,8 +75,8 @@ Execute(--fix-to-stdout should be used for eslint_d): AssertEqual \ { \ 'read_temporary_file': 1, - \ 'command': (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Winify(g:dir . '/../eslint-test-files/app-with-eslint-d/node_modules/.bin/eslint_d')) + \ 'command': + \ ale#Escape(ale#path#Winify(g:dir . '/../eslint-test-files/app-with-eslint-d/node_modules/.bin/eslint_d')) \ . ' -c ' . ale#Escape(ale#path#Winify(g:dir . '/../eslint-test-files/package.json')) \ . ' --fix %t', \ }, @@ -86,8 +86,8 @@ Execute(--fix-to-stdout should be used for eslint_d): " We look at the ESLint version instead of the eslint_d version. AssertEqual \ { - \ 'command': (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Winify(g:dir . '/../eslint-test-files/app-with-eslint-d/node_modules/.bin/eslint_d')) + \ 'command': + \ ale#Escape(ale#path#Winify(g:dir . '/../eslint-test-files/app-with-eslint-d/node_modules/.bin/eslint_d')) \ . ' --stdin-filename %s --stdin --fix-to-stdout', \ }, \ ale#fixers#eslint#ApplyFixForVersion(bufnr(''), ['v3.19.0 (eslint_d v4.2.0)']) @@ -95,8 +95,8 @@ Execute(--fix-to-stdout should be used for eslint_d): " The option should be used for new versions too. AssertEqual \ { - \ 'command': (has('win32') ? 'node.exe ' : '') - \ . ale#Escape(ale#path#Winify(g:dir . '/../eslint-test-files/app-with-eslint-d/node_modules/.bin/eslint_d')) + \ 'command': + \ ale#Escape(ale#path#Winify(g:dir . '/../eslint-test-files/app-with-eslint-d/node_modules/.bin/eslint_d')) \ . ' --stdin-filename %s --stdin --fix-to-stdout', \ }, \ ale#fixers#eslint#ApplyFixForVersion(bufnr(''), ['4.9.0']) |