Skip to content

Commit 97bc2dc

Browse files
committed
tests: table-of-contents: prefer angle syntax
Let's prefer angle bracket syntax to curly syntax when invoking the TableOfContents 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 afcf2c2 commit 97bc2dc

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

tests/integration/components/table-of-contents-test.js

+24-24
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ module('Integration | Component | table of contents', function (hooks) {
1616
this.set('classesIDs', CLASSES);
1717

1818
await render(hbs`
19-
{{
20-
table-of-contents showPrivateClasses=true
21-
version=emberVersion
22-
classesIDs=classesIDs
23-
isShowingNamespaces=true
24-
}}
19+
<TableOfContents
20+
@showPrivateClasses={{true}}
21+
@version={{this.emberVersion}}
22+
@classesIDs={{this.classesIDs}}
23+
@isShowingNamespaces={{true}}
24+
/>
2525
`);
2626

2727
const contentTitle = document.querySelector(
@@ -43,12 +43,12 @@ module('Integration | Component | table of contents', function (hooks) {
4343
this.set('moduleIDs', MODULES);
4444

4545
await render(hbs`
46-
{{
47-
table-of-contents showPrivateClasses=true
48-
version=emberVersion
49-
moduleIDs=moduleIDs
50-
isShowingNamespaces=true
51-
}}
46+
<TableOfContents
47+
@showPrivateClasses={{true}}
48+
@version={{this.emberVersion}}
49+
@moduleIDs={{this.moduleIDs}}
50+
@isShowingNamespaces={{true}}
51+
/>
5252
`);
5353

5454
const contentReference = '.toc-level-1';
@@ -73,12 +73,12 @@ module('Integration | Component | table of contents', function (hooks) {
7373
this.set('moduleIDs', MODULES);
7474

7575
await render(hbs`
76-
{{
77-
table-of-contents showPrivateClasses=true
78-
version=emberVersion
79-
moduleIDs=moduleIDs
80-
isShowingNamespaces=true
81-
}}
76+
<TableOfContents
77+
@showPrivateClasses={{true}}
78+
@version={{this.emberVersion}}
79+
@moduleIDs={{this.moduleIDs}}
80+
@isShowingNamespaces={{true}}
81+
/>
8282
`);
8383

8484
const contentTitle = document.querySelector(
@@ -107,12 +107,12 @@ module('Integration | Component | table of contents', function (hooks) {
107107
this.set('moduleIDs', MODULES);
108108

109109
await render(hbs`
110-
{{
111-
table-of-contents showPrivateClasses=true
112-
version=emberVersion
113-
moduleIDs=moduleIDs
114-
isShowingNamespaces=true
115-
}}
110+
<TableOfContents
111+
@showPrivateClasses={{true}}
112+
@version={{this.emberVersion}}
113+
@moduleIDs={{this.moduleIDs}}
114+
@isShowingNamespaces={{true}}
115+
/>
116116
`);
117117

118118
const titleButton = document.querySelector(

0 commit comments

Comments
 (0)