diff options
author | w0rp <devw0rp@gmail.com> | 2017-02-11 18:49:12 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-02-11 18:49:12 +0000 |
commit | c33602534e205aa677521ce49a8054588d88bdc2 (patch) | |
tree | b92ce5ae89757c1f711ae69b5f995a4a5df79eeb /test | |
parent | beeef28b1a6373c324fb8c5c8b5ec8bb77181431 (diff) | |
download | ale-c33602534e205aa677521ce49a8054588d88bdc2.zip |
Fix Pug linting
Diffstat (limited to 'test')
-rw-r--r-- | test/test_common_handlers.vader | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_common_handlers.vader b/test/test_common_handlers.vader index ed3b1647..0968a916 100644 --- a/test/test_common_handlers.vader +++ b/test/test_common_handlers.vader @@ -86,6 +86,7 @@ Execute (Run HandleUnixFormatAsError): let g:loclist = ale#handlers#HandleUnixFormatAsError(42, [ \ 'file.go:27: missing argument for Printf("%s"): format reads arg 2, have only 1 args', \ 'file.go:53:10: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary)', + \ 'test.pug:1:1 ".b" is not a valid class name. Class names must begin with "-", "_" or a letter and can only contain "_", "-", a-z and 0-9.', \]) Then (The loclist should be correct): @@ -108,6 +109,15 @@ Then (The loclist should be correct): \ 'type': 'E', \ 'text': 'if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary)', \ }, + \ { + \ 'bufnr': 42, + \ 'vcol': 0, + \ 'nr': -1, + \ 'lnum': 1, + \ 'col': 1, + \ 'type': 'E', + \ 'text': '".b" is not a valid class name. Class names must begin with "-", "_" or a letter and can only contain "_", "-", a-z and 0-9.', + \ }, \], g:loclist Execute (Run HandleUnixFormatAsWarning): |