summaryrefslogtreecommitdiff
path: root/test/test_flow_command.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-01-12 13:08:52 +0000
committerw0rp <devw0rp@gmail.com>2019-01-12 13:14:29 +0000
commit6644563949299ce60aadf338103d50315a034a6a (patch)
treeb3ba8e44183af915c5c9b7378bbe40dc6862aa60 /test/test_flow_command.vader
parentd8a53cc7a5c86cea4480b264eef4778ba16e4454 (diff)
downloadale-6644563949299ce60aadf338103d50315a034a6a.zip
#2132 Remove the need for the hidden add_newline option by tweaking the flow command
Diffstat (limited to 'test/test_flow_command.vader')
-rw-r--r--test/test_flow_command.vader6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_flow_command.vader b/test/test_flow_command.vader
index c673ce0a..df72d087 100644
--- a/test/test_flow_command.vader
+++ b/test/test_flow_command.vader
@@ -15,7 +15,7 @@ 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',
+ \ . ' check-contents --respect-pragma --json --from ale %s < %t; echo',
\ ale_linters#javascript#flow#GetCommand(bufnr('%'), [])
Execute(flow should not use the respect pragma argument if the option is off):
@@ -25,7 +25,7 @@ Execute(flow should not use the respect pragma argument if the option is off):
AssertEqual
\ ale#Escape('flow')
- \ . ' check-contents --json --from ale %s',
+ \ . ' check-contents --json --from ale %s < %t; echo',
\ ale_linters#javascript#flow#GetCommand(bufnr('%'), [])
Execute(flow should should not use --respect-pragma for old versions):
@@ -33,7 +33,7 @@ Execute(flow should should not use --respect-pragma for old versions):
AssertEqual
\ ale#Escape('flow')
- \ . ' check-contents --json --from ale %s',
+ \ . ' check-contents --json --from ale %s < %t; 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',