summaryrefslogtreecommitdiff
path: root/test/command_callback/test_embertemplatelint_command_callbacks.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2020-09-05 19:06:07 +0100
committerw0rp <devw0rp@gmail.com>2020-09-05 19:06:07 +0100
commit152b2cb6910d9173d75a195c5a185b7f3f8aa696 (patch)
treebcb4e5fffe6f1234124c880a59bd31292b2d8bc0 /test/command_callback/test_embertemplatelint_command_callbacks.vader
parent844febb9fbfb66bb13dd652d958495e47f0bd408 (diff)
downloadale-152b2cb6910d9173d75a195c5a185b7f3f8aa696.zip
Clean up embertemplatelint code
Alias ember-template-lint to embertemplatelint so users can use either string to enable the linter.
Diffstat (limited to 'test/command_callback/test_embertemplatelint_command_callbacks.vader')
-rw-r--r--test/command_callback/test_embertemplatelint_command_callbacks.vader17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/command_callback/test_embertemplatelint_command_callbacks.vader b/test/command_callback/test_embertemplatelint_command_callbacks.vader
new file mode 100644
index 00000000..97687d29
--- /dev/null
+++ b/test/command_callback/test_embertemplatelint_command_callbacks.vader
@@ -0,0 +1,17 @@
+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):
+ AssertLinter 'ember-template-lint',
+ \ ale#Escape('ember-template-lint') . ' --json --filename %s'
+
+Execute(old ember-template-lint executables runs the right command):
+ GivenCommandOutput []
+
+ AssertLinter 'ember-template-lint',
+ \ ale#Escape('ember-template-lint') . ' --json %t'