Skip to content

Commit 5762107

Browse files
authored
Merge pull request #942 from ember-learn/this-fallback
fix this-property-fallback deprecation
2 parents e8499ed + 945bdd7 commit 5762107

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/deprecation-workflow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ setupDeprecationWorkflow({
55
workflow: [
66
{ handler: 'throw', matchId: 'ember.component.reopen' },
77
{ handler: 'throw', matchId: 'implicit-injections' },
8-
{ handler: 'silence', matchId: 'this-property-fallback' },
8+
{ handler: 'throw', matchId: 'this-property-fallback' },
99
{ handler: 'throw', matchId: 'ember-component.is-visible' },
1010
{
1111
handler: 'silence',

tests/integration/helpers/better-get-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module('helper:better-get', function (hooks) {
1313
this.set('dataStructure', obj);
1414
this.set('key', 'Ember.Object');
1515

16-
await render(hbs`{{better-get dataStructure key}}`);
16+
await render(hbs`{{better-get this.dataStructure this.key}}`);
1717

1818
assert.dom(this.element).hasText('hello');
1919
});
@@ -25,7 +25,7 @@ module('helper:better-get', function (hooks) {
2525
this.set('dataStructure', obj);
2626
this.set('key', '@ember/object');
2727

28-
await render(hbs`{{better-get dataStructure key}}`);
28+
await render(hbs`{{better-get this.dataStructure this.key}}`);
2929

3030
assert.dom(this.element).hasText('hello');
3131
});

tests/integration/helpers/function-heading-id-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module('helper:function-heading-id', function (hooks) {
99
test('should transform nested package to id', async function (assert) {
1010
this.set('inputValue', '@ember/object/computed');
1111

12-
await render(hbs`{{function-heading-id inputValue}}`);
12+
await render(hbs`{{function-heading-id this.inputValue}}`);
1313

1414
assert.dom(this.element).hasText('functions-computed');
1515
});

0 commit comments

Comments
 (0)