@@ -476,7 +476,7 @@ test('let', () => {
476476 {{#let (capitalize this.person.firstName) (capitalize this.person.lastName)
477477 as |firstName lastName|
478478 }}
479- Welcome back {{( concat firstName ' ' lastName) }}
479+ Welcome back {{concat firstName ' ' lastName}}
480480
481481 Account Details:
482482 First Name: {{firstName}}
@@ -554,8 +554,8 @@ test('link-to-inline', () => {
554554 <LinkTo @route=\\"apps.segments\\" class=\\"tabs__discrete-tab\\" @activeClass=\\"o__selected\\" @current-when=\\"apps.segments\\" data-test-segment-link=\\"segments\\">Segments</LinkTo>
555555 <LinkTo @route={{this.dynamicPath}} class=\\"tabs__discrete-tab\\" @activeClass=\\"o__selected\\" @current-when=\\"apps.segments\\" data-test-segment-link=\\"segments\\">Segments</LinkTo>
556556 <LinkTo @route=\\"apps.app.companies.segments.segment\\" @model={{segment}} class=\\"t__em-link\\">{{segment.name}}</LinkTo>
557- <LinkTo @route=\\"flight\\" @model={{event.flight.id}} class=\\"btn btn-default btn-sm pull-right\\">{{( t \\"show\\") }}</LinkTo>
558- <LinkTo @route=\\"user\\" @model={{if linkActor event.actor.id event.user.id}}>{{( t \\"show\\") }}</LinkTo>
557+ <LinkTo @route=\\"flight\\" @model={{event.flight.id}} class=\\"btn btn-default btn-sm pull-right\\">{{t \\"show\\"}}</LinkTo>
558+ <LinkTo @route=\\"user\\" @model={{if linkActor event.actor.id event.user.id}}>{{t \\"show\\"}}</LinkTo>
559559 <LinkTo @route=\\"user\\" @models={{array this.first this.second}}>Show</LinkTo>
560560 <LinkTo @route=\\"user\\" @models={{array this.first this.second}} @query={{hash foo=\\"baz\\"}}>Show</LinkTo>
561561 <LinkTo @route=\\"user\\" @model={{this.first}}>Show</LinkTo>
@@ -839,7 +839,7 @@ test('t-helper', () => {
839839
840840 expect ( runTest ( 't-helper.hbs' , input ) ) . toMatchInlineSnapshot ( `
841841 "
842- {{( t \\"some.string\\" param=\\"string\\" another=1) }}
842+ {{t \\"some.string\\" param=\\"string\\" another=1}}
843843 "
844844 ` ) ;
845845} ) ;
@@ -878,7 +878,7 @@ test('tilde', () => {
878878 expect ( runTest ( 'tilde.hbs' , input ) ) . toMatchInlineSnapshot ( `
879879 "
880880 {{#if foo~}}
881- {{some-component}}
881+ <SomeComponent />
882882 {{/if}}
883883 "
884884 ` ) ;
@@ -977,7 +977,7 @@ test('skip-default-helpers', () => {
977977 expect ( runTest ( 'skip-default-helpers.hbs' , input , options ) ) . toMatchInlineSnapshot ( `
978978 "
979979 <div id=\\"main-container\\">
980- {{( liquid-outlet) }}
980+ {{liquid-outlet}}
981981 </div>
982982 <button {{action \\"toggle\\" \\"showA\\"}}>
983983 Toggle A/B</button>
@@ -997,11 +997,11 @@ test('skip-default-helpers', () => {
997997 Two
998998 </div>
999999 {{/liquid-if}}
1000- {{( moment '12-25-1995' 'MM-DD-YYYY') }}
1001- {{( moment-from '1995-12-25' '2995-12-25' hideAffix=true) }}
1000+ {{moment '12-25-1995' 'MM-DD-YYYY'}}
1001+ {{moment-from '1995-12-25' '2995-12-25' hideAffix=true}}
10021002 <SomeComponent @foo={{true}} />
1003- {{( some-helper1 foo=true) }}
1004- {{( some-helper2 foo=true) }}
1003+ {{some-helper1 foo=true}}
1004+ {{some-helper2 foo=true}}
10051005 "
10061006 ` ) ;
10071007} ) ;
@@ -1039,7 +1039,7 @@ test('skip-default-helpers (no-config)', () => {
10391039 expect ( runTest ( 'skip-default-helpers.hbs' , input ) ) . toMatchInlineSnapshot ( `
10401040 "
10411041 <div id=\\"main-container\\">
1042- {{( liquid-outlet) }}
1042+ {{liquid-outlet}}
10431043 </div>
10441044 <button {{action \\"toggle\\" \\"showA\\"}}>
10451045 Toggle A/B</button>
@@ -1059,8 +1059,8 @@ test('skip-default-helpers (no-config)', () => {
10591059 Two
10601060 </div>
10611061 {{/liquid-if}}
1062- {{( moment '12-25-1995' 'MM-DD-YYYY') }}
1063- {{( moment-from '1995-12-25' '2995-12-25' hideAffix=true) }}
1062+ {{moment '12-25-1995' 'MM-DD-YYYY'}}
1063+ {{moment-from '1995-12-25' '2995-12-25' hideAffix=true}}
10641064 <SomeComponent @foo={{true}} />
10651065 <SomeHelper1 @foo={{true}} />
10661066 <SomeHelper2 @foo={{true}} />
@@ -1086,8 +1086,8 @@ test('custom-options', () => {
10861086 expect ( runTest ( 'custom-options.hbs' , input , options ) ) . toMatchInlineSnapshot ( `
10871087 "
10881088 <SomeComponent @foo={{true}} />
1089- {{( some-helper1 foo=true) }}
1090- {{( some-helper2 foo=true) }}
1089+ {{some-helper1 foo=true}}
1090+ {{some-helper2 foo=true}}
10911091 {{link-to \\"Title\\" \\"some.route\\"}}
10921092 {{textarea value=this.model.body}}
10931093 {{input type=\\"checkbox\\" name=\\"email-opt-in\\" checked=this.model.emailPreference}}
@@ -1180,7 +1180,7 @@ test('preserve arguments', () => {
11801180 "
11811181 <FooBar @class=\\"baz\\" />
11821182 {{foo-bar data-baz class=\\"baz\\"}}
1183- <LinkTo @route=\\"flight\\" @model={{event.flight.id}} class=\\"btn btn-default btn-sm pull-right\\">{{( t \\"show\\") }}</LinkTo>
1183+ <LinkTo @route=\\"flight\\" @model={{event.flight.id}} class=\\"btn btn-default btn-sm pull-right\\">{{t \\"show\\"}}</LinkTo>
11841184 "
11851185 ` ) ;
11861186} ) ;
@@ -1284,26 +1284,26 @@ test('wallstreet-telemetry', () => {
12841284 expect ( runTest ( 'wallstreet-telemetry.hbs' , input ) ) . toMatchInlineSnapshot ( `
12851285 "
12861286 {{nested$helper}}
1287- {{( nested::helper) }}
1288- {{( nested::helper param=\\"yeah!\\") }}
1289- {{( helper-1) }}
1287+ {{nested::helper}}
1288+ {{nested::helper param=\\"yeah!\\"}}
1289+ {{helper-1}}
12901290 "
12911291 ` ) ;
12921292} ) ;
12931293
12941294test ( 'wrapping-helpers-with-parens' , ( ) => {
12951295 let input = `
12961296 {{fooknownhelper}}
1297- {{( fooknownhelper) }}
1297+ {{fooknownhelper}}
12981298 {{fooknownhelper data-test-foo foo="bar"}}
12991299 {{foounknownhelper}}
13001300 ` ;
13011301
13021302 expect ( runTest ( 'wrapping-helpers-with-parens.hbs' , input ) ) . toMatchInlineSnapshot ( `
13031303 "
1304- {{( fooknownhelper) }}
1305- {{( fooknownhelper) }}
1306- {{( fooknownhelper data-test-foo foo=\\"bar\\") }}
1304+ {{fooknownhelper}}
1305+ {{fooknownhelper}}
1306+ {{fooknownhelper data-test-foo foo=\\"bar\\"}}
13071307 {{foounknownhelper}}
13081308 "
13091309 ` ) ;
@@ -1382,7 +1382,24 @@ test('unknown helper with args', () => {
13821382 "
13831383 <ApiReference @component={{this.currentComponent}} />
13841384 {{api-reference someArg}}
1385- {{api-reference}}
1385+ <ApiReference />
1386+ "
1387+ ` ) ;
1388+ } ) ;
1389+
1390+ test ( 'unambiguousHelpers: true' , ( ) => {
1391+ let input = `
1392+ {{concat}}
1393+ {{unknown}}
1394+ {{t "some.string" param="string" another=1}}
1395+ ` ;
1396+
1397+ expect ( runTest ( 'unambiguousHelpers: true' , input , { unambiguousHelpers : true } ) )
1398+ . toMatchInlineSnapshot ( `
1399+ "
1400+ {{(concat)}}
1401+ {{unknown}}
1402+ {{(t \\"some.string\\" param=\\"string\\" another=1)}}
13861403 "
13871404 ` ) ;
13881405} ) ;
0 commit comments