summaryrefslogtreecommitdiff
path: root/test/linter/test_desktop_file_validate.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/linter/test_desktop_file_validate.vader')
-rw-r--r--test/linter/test_desktop_file_validate.vader15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/linter/test_desktop_file_validate.vader b/test/linter/test_desktop_file_validate.vader
new file mode 100644
index 00000000..4a49057b
--- /dev/null
+++ b/test/linter/test_desktop_file_validate.vader
@@ -0,0 +1,15 @@
+Before:
+ call ale#assert#SetUpLinterTest('desktop', 'desktop_file_validate')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(The default command should be correct):
+ AssertLinter 'desktop-file-validate',
+ \ ale#Escape('desktop-file-validate') . ' %t'
+
+Execute(Extra options should work):
+ let b:ale_desktop_desktop_file_validate_options = '--warn-kde'
+
+ AssertLinter 'desktop-file-validate',
+ \ ale#Escape('desktop-file-validate') . ' --warn-kde %t'