Skip to content

Commit 26fc65b

Browse files
committed
Use a canary-compatible helper name for tests
1 parent cca906e commit 26fc65b

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

packages/ember-css-modules/tests/integration/template-ast-plugin-test.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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',

yarn.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6059,7 +6059,7 @@ ember-compatibility-helpers@^1.0.2, ember-compatibility-helpers@^1.1.1, ember-co
60596059
semver "^5.4.1"
60606060

60616061
"ember-css-modules@link:packages/ember-css-modules":
6062-
version "1.3.1"
6062+
version "1.3.3"
60636063
dependencies:
60646064
broccoli-bridge "^1.0.0"
60656065
broccoli-concat "^3.2.2"
@@ -12759,6 +12759,7 @@ temp@^0.8.3:
1275912759

1276012760
"template-stuff@link:packages/ember-css-modules/tests/dummy/lib/template-stuff":
1276112761
version "0.0.0"
12762+
uid ""
1276212763

1276312764
terser-webpack-plugin@^1.1.0, terser-webpack-plugin@^1.4.3:
1276412765
version "1.4.3"

0 commit comments

Comments
 (0)