summaryrefslogtreecommitdiff
path: root/test/test_alelint_autocmd.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_alelint_autocmd.vader')
-rw-r--r--test/test_alelint_autocmd.vader17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/test_alelint_autocmd.vader b/test/test_alelint_autocmd.vader
new file mode 100644
index 00000000..a08ac00e
--- /dev/null
+++ b/test/test_alelint_autocmd.vader
@@ -0,0 +1,17 @@
+Before:
+ let g:success = 0
+ augroup VaderTest
+ autocmd!
+ autocmd User ALELint let g:success = 1
+ augroup end
+
+After:
+ augroup! VaderTest
+
+Given vim (Vimscript):
+ set nocompatible
+Execute (Run ALE):
+ call ale#Lint()
+ call ale#engine#WaitForJobs(2000)
+Then (Autocommand should have run):
+ AssertEqual g:success, 1