summaryrefslogtreecommitdiff
path: root/test/fix/test_ale_fix_completion_filter.vader
blob: 536b7138026102309f8992e155197a206c845601 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Before:
  call ale#fix#registry#Clear()
  call ale#test#SetFilename('test.js')
  call ale#fix#registry#Add('prettier', '', ['javascript'], 'prettier')
  call ale#fix#registry#Add('eslint', '', ['javascript'], 'eslint')
  setfiletype javascript

Execute(completeFixers returns all of the applicable fixers without an arglead):
  AssertEqual ['eslint', 'prettier'],
  \ ale#fix#registry#CompleteFixers('', 'ALEFix ', 7)

Execute(completeFixers returns all of the applicable fixers without an arglead):
  AssertEqual ['prettier'],
  \ ale#fix#registry#CompleteFixers('pre', 'ALEFix ', 10)