From 9857e0a4b7cf2a91453c50791b8cf0d9d7994792 Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 22 Nov 2017 17:25:37 +0000 Subject: [PATCH] Fix the eslint_d fixer tests for Windows --- test/fixers/test_eslint_fixer_callback.vader | 12 ++++++------ 1 file 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'])