mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-30 14:45:29 +08:00
support ember-template-lint 4.x (#4200)
* support ember-template-lint 4.x * update ember-template-lint linter test
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user