summaryrefslogtreecommitdiff
path: root/test/handler/test_gitlint_handler.vader
diff options
context:
space:
mode:
authorCyril Roelandt <tipecaml@gmail.com>2018-08-30 03:42:44 +0200
committerCyril Roelandt <tipecaml@gmail.com>2018-08-30 03:42:44 +0200
commit244c5a8ce5f400efc76977c480965df0019d8fff (patch)
tree7a8c990d60197fc75be1e2e7f9aadd962c3ed875 /test/handler/test_gitlint_handler.vader
parent3c85c7ef65242cf80279cf9dcf843523f6d7875b (diff)
downloadale-244c5a8ce5f400efc76977c480965df0019d8fff.zip
gitcommit: fully implement warn_about_trailing_whitespace
Fixes #1761
Diffstat (limited to 'test/handler/test_gitlint_handler.vader')
-rw-r--r--test/handler/test_gitlint_handler.vader19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/handler/test_gitlint_handler.vader b/test/handler/test_gitlint_handler.vader
index 60d632a0..5c531664 100644
--- a/test/handler/test_gitlint_handler.vader
+++ b/test/handler/test_gitlint_handler.vader
@@ -61,6 +61,19 @@ Execute(Disabling trailing whitespace warnings should work):
\ '8: T2 Trailing whitespace',
\])
+ AssertEqual
+ \ [
+ \ {
+ \ 'lnum': 8,
+ \ 'type': 'E',
+ \ 'text': 'Trailing whitespace',
+ \ 'code': 'B2',
+ \ },
+ \ ],
+ \ ale_linters#gitcommit#gitlint#Handle(bufnr(''), [
+ \ '8: B2 Trailing whitespace',
+ \])
+
let b:ale_warn_about_trailing_whitespace = 0
AssertEqual
@@ -68,3 +81,9 @@ Execute(Disabling trailing whitespace warnings should work):
\ ale_linters#gitcommit#gitlint#Handle(bufnr(''), [
\ '8: T2 Trailing whitespace',
\ ])
+
+ AssertEqual
+ \ [],
+ \ ale_linters#gitcommit#gitlint#Handle(bufnr(''), [
+ \ '8: B2 Trailing whitespace',
+ \ ])