Get tslint and xmllint command callback tests to pass in Windows

This commit is contained in:
w0rp
2017-10-01 21:23:42 +01:00
parent 54a08c5f8c
commit e0bd490ed9
2 changed files with 6 additions and 5 deletions

View File

@@ -12,6 +12,7 @@ Before:
runtime ale_linters/typescript/tslint.vim
call ale#test#SetDirectory('/testplugin/test/command_callback')
call ale#test#SetFilename('test.ts')
After:
Restore
@@ -23,7 +24,7 @@ After:
Execute(The default tslint command should be correct):
AssertEqual
\ 'cd ''' . expand('%:p:h') . ''' && '
\ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
\ . 'tslint --format json %t',
\ ale_linters#typescript#tslint#GetCommand(bufnr(''))
@@ -31,7 +32,7 @@ Execute(The rules directory option should be included if set):
let b:ale_typescript_tslint_rules_dir = '/foo/bar'
AssertEqual
\ 'cd ''' . expand('%:p:h') . ''' && '
\ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
\ . 'tslint --format json'
\ . ' -r ' . ale#Escape('/foo/bar')
\ . ' %t',