diff options
author | Bartek thindil Jasicki <thindil@laeran.pl> | 2020-09-04 13:46:11 +0200 |
---|---|---|
committer | Bartek thindil Jasicki <thindil@laeran.pl> | 2020-09-04 13:46:11 +0200 |
commit | c78be861035765d268a5533cf583803e22d56d1c (patch) | |
tree | 63b2294216911121d594b885ae93fb82edc00273 /test/test_embertemplatelint_executable_detection.vader | |
parent | 0de847a8e1793b597ba0a73ae8e20797a5fce920 (diff) | |
parent | 844febb9fbfb66bb13dd652d958495e47f0bd408 (diff) | |
download | ale-c78be861035765d268a5533cf583803e22d56d1c.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'test/test_embertemplatelint_executable_detection.vader')
-rw-r--r-- | test/test_embertemplatelint_executable_detection.vader | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/test_embertemplatelint_executable_detection.vader b/test/test_embertemplatelint_executable_detection.vader new file mode 100644 index 00000000..bd0f5dd9 --- /dev/null +++ b/test/test_embertemplatelint_executable_detection.vader @@ -0,0 +1,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' |