Skip to content

Commit 66e3476

Browse files
committed
tests: class-field-desc: prefer angle syntax
Let's prefer angle bracket syntax to curly syntax when invoking the ClassFieldDescription component in our integration tests. This will fix deprecation warnings about using the latter, which make the test results a bit harder to decipher.
1 parent fea45c7 commit 66e3476

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tests/integration/components/class-field-description-test.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ module('Integration | Component | class field description', function (hooks) {
2626
})
2727
);
2828

29-
await render(hbs`{{class-field-description type=type field=field}}`);
29+
await render(
30+
hbs`<ClassFieldDescription @type={{this.type}} @field={{this.field}}/>`
31+
);
3032

3133
assert.dom('.method-name').hasText('concat');
3234
assert.dom(findAll('.access')[0]).hasText('public');
@@ -47,7 +49,9 @@ module('Integration | Component | class field description', function (hooks) {
4749
})
4850
);
4951

50-
await render(hbs`{{class-field-description type=type field=field}}`);
52+
await render(
53+
hbs`<ClassFieldDescription @type={{this.type}} @field={{this.field}}/>`
54+
);
5155

5256
await triggerEvent('.class-field-description--link', 'mouseenter');
5357
assert
@@ -73,7 +77,7 @@ module('Integration | Component | class field description', function (hooks) {
7377
);
7478

7579
await render(
76-
hbs`{{class-field-description field=field updateAnchor=updateAnchor}}`
80+
hbs`<ClassFieldDescription @field={{this.field}} @updateAnchor={{this.updateAnchor}}/>`
7781
);
7882

7983
await click('.class-field-description--link');
@@ -98,7 +102,9 @@ module('Integration | Component | class field description', function (hooks) {
98102
})
99103
);
100104

101-
await render(hbs`{{class-field-description type=type field=field}}`);
105+
await render(
106+
hbs`<ClassFieldDescription @type={{this.type}} @field={{this.field}}/>`
107+
);
102108

103109
assert.dom(find('.prop:nth-child(1) dt')).hasText('prop1');
104110
assert.dom(find('.prop:nth-child(2) dt')).hasText('prop2');

0 commit comments

Comments
 (0)