summaryrefslogtreecommitdiff
path: root/test/fixers/test_remark_lint_fixer_callback.vader
blob: 5e2e342de1932c79f344655e059589867cd18464 (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:
  Save g:ale_markdown_remark_lint_executable
  Save g:ale_markdown_remark_lint_options

After:
  Restore

Execute(The remark callback should return the correct default values):
  AssertEqual
  \ {
  \   'command': ale#Escape('remark')
  \ },
  \ ale#fixers#remark_lint#Fix(bufnr(''))

Execute(The remark executable and options should be configurable):
  let g:ale_markdown_remark_lint_executable = '/path/to/remark'
  let g:ale_markdown_remark_lint_options = '-h'

  AssertEqual
  \ {
  \   'command': ale#Escape('/path/to/remark')
  \     . ' -h',
  \ },
  \ ale#fixers#remark_lint#Fix(bufnr(''))