Skip to content

Commit 62195b7

Browse files
authored
Merge pull request #108 from neersighted/autocmd2
Add autocommand test
2 parents 9e4d7c1 + 0e6f406 commit 62195b7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/test_alelint_autocmd.vader

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Before:
2+
let g:success = 0
3+
augroup VaderTest
4+
autocmd!
5+
autocmd User ALELint let g:success = 1
6+
augroup end
7+
8+
After:
9+
augroup! VaderTest
10+
11+
Given vim (Vimscript):
12+
set nocompatible
13+
Execute (Run ALE):
14+
call ale#Lint()
15+
call ale#engine#WaitForJobs(2000)
16+
Then (Autocommand should have run):
17+
AssertEqual g:success, 1

0 commit comments

Comments
 (0)