summaryrefslogtreecommitdiff
path: root/test/linter
diff options
context:
space:
mode:
authorJames C. Davis <jamescdavis@gmail.com>2022-05-14 23:44:23 -0400
committerGitHub <noreply@github.com>2022-05-15 12:44:23 +0900
commit5479b58660906041d67544a025522a39e006b184 (patch)
tree4c18b6a9a5bbb076279cc4e8a85a4c00c2a16406 /test/linter
parente6ca599e87a0cfc9efc2fe7dd104a6c61d0bf8e4 (diff)
downloadale-5479b58660906041d67544a025522a39e006b184.zip
support ember-template-lint 4.x (#4200)
* support ember-template-lint 4.x * update ember-template-lint linter test
Diffstat (limited to 'test/linter')
-rw-r--r--test/linter/test_embertemplatelint.vader16
1 files changed, 11 insertions, 5 deletions
diff --git a/test/linter/test_embertemplatelint.vader b/test/linter/test_embertemplatelint.vader
index 97687d29..7cba83e2 100644
--- a/test/linter/test_embertemplatelint.vader
+++ b/test/linter/test_embertemplatelint.vader
@@ -1,17 +1,23 @@
Before:
call ale#assert#SetUpLinterTest('handlebars', 'embertemplatelint')
- GivenCommandOutput ['1.6.0']
-
After:
call ale#assert#TearDownLinterTest()
-Execute(ember-template-lint executables runs the right command):
+Execute(Runs the right command for ember-template-lint >= 4.x):
+ GivenCommandOutput ['4.0.0']
+
AssertLinter 'ember-template-lint',
+ \ ale#Escape('ember-template-lint') . ' --format=json --filename %s'
+
+Execute(Runs the right command for ember-template-lint >= 1.6, < 4.x):
+ GivenCommandOutput ['1.6.0']
+
+ AssertLinter 'ember-template-lint',
\ ale#Escape('ember-template-lint') . ' --json --filename %s'
-Execute(old ember-template-lint executables runs the right command):
- GivenCommandOutput []
+Execute(Runs the right command for ember-template-lint < 1.6):
+ GivenCommandOutput ['1.5.0']
AssertLinter 'ember-template-lint',
\ ale#Escape('ember-template-lint') . ' --json %t'