summaryrefslogtreecommitdiff
path: root/test/test_embertemplatelint_executable_detection.vader
blob: bd0f5dd99a6fd65cdd21586ada8f9f7917939393 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Before:
  call ale#test#SetDirectory('/testplugin/test')

  runtime ale_linters/handlebars/embertemplatelint.vim

After:
  call ale#test#RestoreDirectory()
  call ale#linter#Reset()

Execute(ember-template-lint executables runs the right command):
  call ale#test#SetFilename('ember-template-lint-test-files/app/template.hbs')

  AssertEqual
  \ ale_linters#handlebars#embertemplatelint#GetCommand(bufnr(''), [2, 0, 0]),
  \ '%e --json --filename %s'

Execute(old ember-template-lint executables runs the right command):
  call ale#test#SetFilename('ember-template-lint-test-files/app/template.hbs')

  AssertEqual
  \ ale_linters#handlebars#embertemplatelint#GetCommand(bufnr(''), [1, 5, 0]),
  \ '%e --json %t'