diff options
author | Sam <sam.saffron@gmail.com> | 2024-02-23 15:30:12 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-23 13:30:12 +0900 |
commit | 5e8904cd3da4565130c09b77179ae7dddd07358f (patch) | |
tree | ef10ca0c59d3ab840e240769644cc6b028dc0fe4 /test/handler/test_embertemplatelint_handler.vader | |
parent | f38a80217282005e15305bfa37d051bb580b63a1 (diff) | |
download | ale-5e8904cd3da4565130c09b77179ae7dddd07358f.zip |
Add support for gjs template linting using embertemplate lint (#4653)
* super hacky way to get ember template lint to work on gjs files
* Clean up code so we use a handler which means we reuse all the config
also moves handler to the glimmer directory so it only fires
for gjs files
* fix tests
Diffstat (limited to 'test/handler/test_embertemplatelint_handler.vader')
-rw-r--r-- | test/handler/test_embertemplatelint_handler.vader | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/handler/test_embertemplatelint_handler.vader b/test/handler/test_embertemplatelint_handler.vader index 97ca4390..d5394baf 100644 --- a/test/handler/test_embertemplatelint_handler.vader +++ b/test/handler/test_embertemplatelint_handler.vader @@ -1,6 +1,6 @@ " Author: Adrian Zalewski <aazalewski@hotmail.com> Before: - runtime ale_linters/handlebars/embertemplatelint.vim + runtime autoload/ale/handlers/embertemplatelint.vim After: call ale#linter#Reset() @@ -44,7 +44,7 @@ Execute(The ember-template-lint handler should parse lines correctly): \ 'type': 'W', \ }, \ ], - \ ale_linters#handlebars#embertemplatelint#Handle(347, input_lines) + \ ale#handlers#embertemplatelint#Handle(347, input_lines) Execute(The ember-template-lint handler should handle template parsing error correctly): let input_lines = split('{ @@ -70,12 +70,12 @@ Execute(The ember-template-lint handler should handle template parsing error cor \ 'type': 'E', \ }, \ ], - \ ale_linters#handlebars#embertemplatelint#Handle(347, input_lines) + \ ale#handlers#embertemplatelint#Handle(347, input_lines) Execute(The ember-template-lint handler should handle no lint errors/warnings): AssertEqual \ [], - \ ale_linters#handlebars#embertemplatelint#Handle(347, []) + \ ale#handlers#embertemplatelint#Handle(347, []) AssertEqual \ [], - \ ale_linters#handlebars#embertemplatelint#Handle(347, ['{}']) + \ ale#handlers#embertemplatelint#Handle(347, ['{}']) |