summaryrefslogtreecommitdiff
path: root/test/handler/test_stylelint_handler.vader
diff options
context:
space:
mode:
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',
+ \ ])