summaryrefslogtreecommitdiff
path: root/test/handler/test_stylelint_handler.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-04-24 22:27:18 +0100
committerw0rp <devw0rp@gmail.com>2017-04-24 22:27:18 +0100
commita03121f5b051ed1f146a8979ea5d2bb26fe05bff (patch)
treedefbf1cd9c45af97667ec7ff47733a6cceca4207 /test/handler/test_stylelint_handler.vader
parentb4c0335ebceb5ba360a71dd3d0f10ec1d5807a83 (diff)
downloadale-a03121f5b051ed1f146a8979ea5d2bb26fe05bff.zip
Break shared handlers up into their own files, and fix stylelint error handling
Diffstat (limited to 'test/handler/test_stylelint_handler.vader')
-rw-r--r--test/handler/test_stylelint_handler.vader21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/handler/test_stylelint_handler.vader b/test/handler/test_stylelint_handler.vader
new file mode 100644
index 00000000..da2df534
--- /dev/null
+++ b/test/handler/test_stylelint_handler.vader
@@ -0,0 +1,21 @@
+Execute (stylelint errors should be handled correctly):
+ AssertEqual
+ \ [
+ \ {
+ \ 'lnum': 108,
+ \ 'col': 10,
+ \ 'type': 'E',
+ \ 'text': 'Unexpected leading zero [number-leading-zero]',
+ \ },
+ \ {
+ \ 'lnum': 116,
+ \ 'col': 20,
+ \ 'type': 'E',
+ \ 'text': 'Expected a trailing semicolon [declaration-block-trailing-semicolon]',
+ \ },
+ \ ],
+ \ ale#handlers#css#HandleStyleLintFormat(42, [
+ \ 'src/main.css',
+ \ ' 108:10 ✖ Unexpected leading zero number-leading-zero',
+ \ ' 116:20 ✖ Expected a trailing semicolon declaration-block-trailing-semicolon',
+ \ ])