diff options
author | Aliou Diallo <code@aliou.me> | 2018-05-08 07:56:19 +0200 |
---|---|---|
committer | Aliou Diallo <code@aliou.me> | 2018-05-10 16:15:08 +0200 |
commit | 199fcd48ac5333c6fab1ac92b802d4f23d17e491 (patch) | |
tree | bc3dd86a1a0daf42476058756ba69bfb151e4314 /test/fix | |
parent | 726a768464d3e42869088599cf1bd049f7a751df (diff) | |
download | ale-199fcd48ac5333c6fab1ac92b802d4f23d17e491.zip |
Use the command line to filter ALEFix's command line completion.
Diffstat (limited to 'test/fix')
-rw-r--r-- | test/fix/test_ale_fix_completion_filter.vader | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/fix/test_ale_fix_completion_filter.vader b/test/fix/test_ale_fix_completion_filter.vader new file mode 100644 index 00000000..536b7138 --- /dev/null +++ b/test/fix/test_ale_fix_completion_filter.vader @@ -0,0 +1,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) |