From 7112776d1b04d2cb01a1b01c0edfa5b86ed88e99 Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 20 Aug 2017 00:05:15 +0100 Subject: #653 Update tslint to set the filename key for problems in other files --- .../test_tslint_command_callback.vader | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test/command_callback/test_tslint_command_callback.vader (limited to 'test/command_callback') diff --git a/test/command_callback/test_tslint_command_callback.vader b/test/command_callback/test_tslint_command_callback.vader new file mode 100644 index 00000000..694d36d6 --- /dev/null +++ b/test/command_callback/test_tslint_command_callback.vader @@ -0,0 +1,24 @@ +Before: + Save g:typescript_tslint_executable + Save g:typescript_tslint_config_path + Save g:typescript_tslint_use_global + + unlet! g:typescript_tslint_executable + unlet! g:typescript_tslint_config_path + unlet! g:typescript_tslint_use_global + + runtime ale_linters/typescript/tslint.vim + + call ale#test#SetDirectory('/testplugin/test/command_callback') + +After: + Restore + + call ale#test#RestoreDirectory() + call ale#linter#Reset() + +Execute(The default tslint command should be correct): + AssertEqual + \ 'cd ''' . expand('%:p:h') . ''' && ' + \ . 'tslint --format json %t', + \ ale_linters#typescript#tslint#GetCommand(bufnr('')) -- cgit v1.2.3