summaryrefslogtreecommitdiff
path: root/test/test_alelint_autocmd.vader
blob: eeb74ee555fd9defda9ea39d4aac1a6379bdd409 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Before:
  let g:success = 0
  let g:ale_run_synchronously = 1

  augroup VaderTest
    autocmd!
    autocmd User ALELint let g:success = 1
  augroup end

After:
  let g:ale_run_synchronously = 0

  augroup! VaderTest
  let g:ale_buffer_info = {}

Given vim (Some vimscript):
  set nocompatible

Execute (Lint it):
  call ale#Lint()
  call ale#engine#WaitForJobs(2000)

Then (Autocommands should have run):
  AssertEqual g:success, 1