summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-08-20 00:05:15 +0100
committerw0rp <devw0rp@gmail.com>2017-08-20 00:05:15 +0100
commit7112776d1b04d2cb01a1b01c0edfa5b86ed88e99 (patch)
tree423cb978a7e7e680013dd819b2bf20721eede77d /test/command_callback
parentfb0adc602e13fb9d7ee41bb1d3303fdc6bfb45f5 (diff)
downloadale-7112776d1b04d2cb01a1b01c0edfa5b86ed88e99.zip
#653 Update tslint to set the filename key for problems in other files
Diffstat (limited to 'test/command_callback')
-rw-r--r--test/command_callback/test_tslint_command_callback.vader24
1 files changed, 24 insertions, 0 deletions
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(''))