mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-25 12:26:51 +08:00
Fix #1115 - Add support for wrapping all commands with an option
This commit is contained in:
@@ -581,8 +581,8 @@ Execute(Test fixing with chained callbacks):
|
||||
" The buffer shouldn't be piped in for earlier commands in the chain.
|
||||
AssertEqual
|
||||
\ [
|
||||
\ string(ale#job#PrepareCommand('echo echoline')),
|
||||
\ string(ale#job#PrepareCommand('echo echoline')),
|
||||
\ string(ale#job#PrepareCommand(bufnr(''), 'echo echoline')),
|
||||
\ string(ale#job#PrepareCommand(bufnr(''), 'echo echoline')),
|
||||
\ ],
|
||||
\ map(ale#history#Get(bufnr(''))[-2:-1], 'string(v:val.command)')
|
||||
|
||||
@@ -635,7 +635,7 @@ Execute(A temporary file shouldn't be piped into the command when disabled):
|
||||
ALEFix
|
||||
|
||||
AssertEqual
|
||||
\ string(ale#job#PrepareCommand('echo new line')),
|
||||
\ string(ale#job#PrepareCommand(bufnr(''), 'echo new line')),
|
||||
\ string(ale#history#Get(bufnr(''))[-1].command)
|
||||
|
||||
" Remove trailing whitespace for Windows.
|
||||
|
||||
Reference in New Issue
Block a user