Syntax Error on Argumentless Helper Invocation
jrjohnson opened this issue · 2 comments
I'm attempting to clear up Invoking Helpers Without Arguments and Parentheses In Named Argument Positions deprecations. In particular patterns in component tests like:
await render(hbs`<LeadershipManager
@removeDirector={{noop}}
@addDirector={{noop}}
/>`);
Using the noop helper from ember-composable-helpers to alleviate the need to pass meaningless methods in our tests.
Where the deprecation guide recommends replacing {{noop}}
with {{(noop)}}
. With Unstable Ember Language Server v3.0.4
enabled VSCode reports
Expecting 'ID', 'STRING', 'NUMBER', 'BOOLEAN', 'UNDEFINED', 'NULL', 'DATA', got 'OPEN_SEXPR'glimmer-engine(syntax)
I'm not seeing any problems building or running this test with ember-source@3.28.0
.
Oh no, I'm sorry. I should have searched a bit harder for this issue. Thanks for being on top of this long before I noticed it! I'll close this now.