diff options
author | w0rp <devw0rp@gmail.com> | 2019-01-12 14:36:07 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2019-01-12 14:36:07 +0000 |
commit | 56b7dca6234d9922c07ca6925a74a45af0ac3b3a (patch) | |
tree | fe51102afb5cda5bd9b58849d3c5234572f7b956 /test/test_flow_command.vader | |
parent | cbaa7eb3c7608d660b372305f1c7bad248ab7432 (diff) | |
download | ale-56b7dca6234d9922c07ca6925a74a45af0ac3b3a.zip |
Fix flow tests on Windows
Diffstat (limited to 'test/test_flow_command.vader')
-rw-r--r-- | test/test_flow_command.vader | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/test_flow_command.vader b/test/test_flow_command.vader index df72d087..9fc38930 100644 --- a/test/test_flow_command.vader +++ b/test/test_flow_command.vader @@ -15,7 +15,8 @@ Execute(flow should return a command to run if a .flowconfig file exists): AssertEqual \ ale#Escape('flow') - \ . ' check-contents --respect-pragma --json --from ale %s < %t; echo', + \ . ' check-contents --respect-pragma --json --from ale %s < %t' + \ . (!has('win32') ? '; echo' : ''), \ ale_linters#javascript#flow#GetCommand(bufnr('%'), []) Execute(flow should not use the respect pragma argument if the option is off): @@ -25,7 +26,8 @@ Execute(flow should not use the respect pragma argument if the option is off): AssertEqual \ ale#Escape('flow') - \ . ' check-contents --json --from ale %s < %t; echo', + \ . ' check-contents --json --from ale %s < %t' + \ . (!has('win32') ? '; echo' : ''), \ ale_linters#javascript#flow#GetCommand(bufnr('%'), []) Execute(flow should should not use --respect-pragma for old versions): @@ -33,7 +35,8 @@ Execute(flow should should not use --respect-pragma for old versions): AssertEqual \ ale#Escape('flow') - \ . ' check-contents --json --from ale %s < %t; echo', + \ . ' check-contents --json --from ale %s < %t' + \ . (!has('win32') ? '; echo' : ''), \ ale_linters#javascript#flow#GetCommand(bufnr('%'), [ \ 'Warning: `flow --version` is deprecated in favor of `flow version`', \ 'Flow, a static type checker for JavaScript, version 0.27.0', |