summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-11-09 10:32:41 +0000
committerw0rp <devw0rp@gmail.com>2017-11-09 10:32:41 +0000
commit8ef8a35462e9d3fbfe3fdf704e06ab957fb4ed7f (patch)
tree42f6f430d11ee003758daad88f639565ee5d20cc /test
parent8a4cf923a8a3017fa683bd27d699d9b14720cd66 (diff)
downloadale-8ef8a35462e9d3fbfe3fdf704e06ab957fb4ed7f.zip
Fix #1101 - Ignore no-implicit-dependencies errors until TSLint supports checking via stdin properly
Diffstat (limited to 'test')
-rw-r--r--test/handler/test_tslint_handler.vader23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/handler/test_tslint_handler.vader b/test/handler/test_tslint_handler.vader
index 2ed3357b..db6294cf 100644
--- a/test/handler/test_tslint_handler.vader
+++ b/test/handler/test_tslint_handler.vader
@@ -252,3 +252,26 @@ Execute(The tslint handler should report errors when the ignore option is on, bu
\ 'position': 1
\ }
\ }])])
+
+Execute(The tslint handler should not report no-implicit-dependencies errors):
+ call ale#test#SetFilename('app/test.ts')
+
+ AssertEqual
+ \ [
+ \ ],
+ \ ale_linters#typescript#tslint#Handle(bufnr(''), [json_encode([{
+ \ 'endPosition': {
+ \ 'character': 0,
+ \ 'line': 1,
+ \ 'position': 1
+ \ },
+ \ 'failure': 'this is ignored',
+ \ 'name': 'test.ts',
+ \ 'ruleName': 'no-implicit-dependencies',
+ \ 'ruleSeverity': 'ERROR',
+ \ 'startPosition': {
+ \ 'character': 0,
+ \ 'line': 1,
+ \ 'position': 1
+ \ }
+ \ }])])