@@ -12,7 +12,7 @@ module('Integration | Template AST Plugin', function(hooks) {
1212 hooks . beforeEach ( function ( ) {
1313 this . owner . register ( 'template:components/x-div' , hbs `{{yield}}` ) ;
1414 this . owner . register ( 'component:x-div' , Component . extend ( { attributeBindings : [ 'data-test-value' ] } ) ) ;
15- this . owner . register ( 'helper:helper' , helper ( ( params , hash ) => {
15+ this . owner . register ( 'helper:custom- helper' , helper ( ( params , hash ) => {
1616 const values = Object . keys ( hash ) . map ( key => hash [ key ] ) ;
1717 return params . concat ( values ) . join ( ' ' ) ;
1818 } ) ) ;
@@ -137,8 +137,8 @@ module('Integration | Template AST Plugin', function(hooks) {
137137 } ) ;
138138
139139 testTransformation ( 'creating a class attribute with dynamic local-class value' , {
140- statementInput : 'local-class=(helper positional "bar" keyA=named keyB="qux")' ,
141- elementInput : 'local-class={{helper positional "bar" keyA=named keyB="qux"}}' ,
140+ statementInput : 'local-class=(custom- helper positional "bar" keyA=named keyB="qux")' ,
141+ elementInput : 'local-class={{custom- helper positional "bar" keyA=named keyB="qux"}}' ,
142142 output : 'class="--foo --bar --baz --qux"' ,
143143
144144 selector : '.--foo.--bar.--baz.--qux' ,
@@ -155,8 +155,8 @@ module('Integration | Template AST Plugin', function(hooks) {
155155 } ) ;
156156
157157 testTransformation ( 'creating a class attribute with mixed local-class value' , {
158- statementInput : 'local-class=(concat "foo " (helper positional "bar" keyA=named keyB="qux"))' ,
159- elementInput : 'local-class="foo {{helper positional "bar" keyA=named keyB="qux"}}"' ,
158+ statementInput : 'local-class=(concat "foo " (custom- helper positional "bar" keyA=named keyB="qux"))' ,
159+ elementInput : 'local-class="foo {{custom- helper positional "bar" keyA=named keyB="qux"}}"' ,
160160 output : 'class="--foo --fizz --bar --baz --qux"' ,
161161
162162 selector : '.--foo.--fizz.--bar.--baz.--qux' ,
@@ -174,8 +174,8 @@ module('Integration | Template AST Plugin', function(hooks) {
174174 } ) ;
175175
176176 testTransformation ( 'appending a class attribute with dynamic local-class value' , {
177- statementInput : 'class="x" local-class=(helper positional "bar" keyA=named keyB="qux")' ,
178- elementInput : 'class="x" local-class={{helper positional "bar" keyA=named keyB="qux"}}' ,
177+ statementInput : 'class="x" local-class=(custom- helper positional "bar" keyA=named keyB="qux")' ,
178+ elementInput : 'class="x" local-class={{custom- helper positional "bar" keyA=named keyB="qux"}}' ,
179179 output : 'class="x --foo --bar --baz --qux"' ,
180180
181181 selector : '.x.--foo.--bar.--baz.--qux' ,
@@ -192,8 +192,8 @@ module('Integration | Template AST Plugin', function(hooks) {
192192 } ) ;
193193
194194 testTransformation ( 'appending a class attribute with mixed local-class value' , {
195- statementInput : 'class="x" local-class=(concat "foo " (helper positional "bar" keyA=named keyB="qux"))' ,
196- elementInput : 'class="x" local-class="foo {{helper positional "bar" keyA=named keyB="qux"}}"' ,
195+ statementInput : 'class="x" local-class=(concat "foo " (custom- helper positional "bar" keyA=named keyB="qux"))' ,
196+ elementInput : 'class="x" local-class="foo {{custom- helper positional "bar" keyA=named keyB="qux"}}"' ,
197197 output : 'class="x --foo --fizz --bar --baz --qux"' ,
198198
199199 selector : '.x.--foo.--bar.--baz.--qux' ,
0 commit comments