Fix flow tests on Windows

This commit is contained in:
w0rp 2019-01-12 14:36:07 +00:00
parent cbaa7eb3c7
commit 56b7dca623
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83

View File

@ -15,7 +15,8 @@ Execute(flow should return a command to run if a .flowconfig file exists):
AssertEqual AssertEqual
\ ale#Escape('flow') \ 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('%'), []) \ ale_linters#javascript#flow#GetCommand(bufnr('%'), [])
Execute(flow should not use the respect pragma argument if the option is off): 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 AssertEqual
\ ale#Escape('flow') \ 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('%'), []) \ ale_linters#javascript#flow#GetCommand(bufnr('%'), [])
Execute(flow should should not use --respect-pragma for old versions): 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 AssertEqual
\ ale#Escape('flow') \ 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('%'), [ \ ale_linters#javascript#flow#GetCommand(bufnr('%'), [
\ 'Warning: `flow --version` is deprecated in favor of `flow version`', \ 'Warning: `flow --version` is deprecated in favor of `flow version`',
\ 'Flow, a static type checker for JavaScript, version 0.27.0', \ 'Flow, a static type checker for JavaScript, version 0.27.0',