From bb123060aedb63b500a9ff4fa516566315541ad1 Mon Sep 17 00:00:00 2001 From: Lloyd Smith Date: Thu, 18 May 2023 11:51:55 -0400 Subject: [PATCH] Add test for input-helper with action helper Add a test case showing that `{{action 'foo' value='target.foo'`` is preserved by the transform. --- transforms/angle-brackets/transform.test.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/transforms/angle-brackets/transform.test.js b/transforms/angle-brackets/transform.test.js index af91ebae..ff1740d0 100644 --- a/transforms/angle-brackets/transform.test.js +++ b/transforms/angle-brackets/transform.test.js @@ -444,6 +444,18 @@ test('input-helper', () => { `); }); +test('input-helper-with-action', () => { + let input = ` + {{input class='cl-input' value=(readonly param) input=(action 'paramUpdated' value='target.value')}} + `; + + expect(runTest('input-helper.hbs', input)).toMatchInlineSnapshot(` + " + + " + `); +}); + test('let', () => { let input = ` {{#let (capitalize this.person.firstName) (capitalize this.person.lastName)