@@ -12,18 +12,16 @@ module('Integration | Component | table of contents', function (hooks) {
12
12
13
13
test ( 'it renders' , async function ( assert ) {
14
14
// Set any properties with this.set('myProperty', 'value');
15
- this . set ( 'projectId' , 'Ember' ) ;
16
15
this . set ( 'emberVersion' , '2.4.3' ) ;
17
16
this . set ( 'classesIDs' , CLASSES ) ;
18
17
19
18
await render ( hbs `
20
- {{
21
- table-of-contents showPrivateClasses=true
22
- projectid=projectId
23
- version=emberVersion
24
- classesIDs=classesIDs
25
- isShowingNamespaces=true
26
- }}
19
+ <TableOfContents
20
+ @showPrivateClasses={{true}}
21
+ @version={{this.emberVersion}}
22
+ @classesIDs={{this.classesIDs}}
23
+ @isShowingNamespaces={{true}}
24
+ />
27
25
` ) ;
28
26
29
27
const contentTitle = document . querySelector (
@@ -41,18 +39,16 @@ module('Integration | Component | table of contents', function (hooks) {
41
39
42
40
test ( 'Starts with underlying content visible' , async function ( assert ) {
43
41
// Set any properties with this.set('myProperty', 'value');
44
- this . set ( 'projectId' , 'Ember' ) ;
45
42
this . set ( 'emberVersion' , '2.4.3' ) ;
46
43
this . set ( 'moduleIDs' , MODULES ) ;
47
44
48
45
await render ( hbs `
49
- {{
50
- table-of-contents showPrivateClasses=true
51
- projectid=projectId
52
- version=emberVersion
53
- moduleIDs=moduleIDs
54
- isShowingNamespaces=true
55
- }}
46
+ <TableOfContents
47
+ @showPrivateClasses={{true}}
48
+ @version={{this.emberVersion}}
49
+ @moduleIDs={{this.moduleIDs}}
50
+ @isShowingNamespaces={{true}}
51
+ />
56
52
` ) ;
57
53
58
54
const contentReference = '.toc-level-1' ;
@@ -73,18 +69,16 @@ module('Integration | Component | table of contents', function (hooks) {
73
69
74
70
test ( 'Underlying content hides once clicked' , async function ( assert ) {
75
71
// Set any properties with this.set('myProperty', 'value');
76
- this . set ( 'projectId' , 'Ember' ) ;
77
72
this . set ( 'emberVersion' , '2.4.3' ) ;
78
73
this . set ( 'moduleIDs' , MODULES ) ;
79
74
80
75
await render ( hbs `
81
- {{
82
- table-of-contents showPrivateClasses=true
83
- projectid=projectId
84
- version=emberVersion
85
- moduleIDs=moduleIDs
86
- isShowingNamespaces=true
87
- }}
76
+ <TableOfContents
77
+ @showPrivateClasses={{true}}
78
+ @version={{this.emberVersion}}
79
+ @moduleIDs={{this.moduleIDs}}
80
+ @isShowingNamespaces={{true}}
81
+ />
88
82
` ) ;
89
83
90
84
const contentTitle = document . querySelector (
@@ -109,18 +103,16 @@ module('Integration | Component | table of contents', function (hooks) {
109
103
110
104
test ( 'Underlying content should be visible after 2 clicks' , async function ( assert ) {
111
105
// Set any properties with this.set('myProperty', 'value');
112
- this . set ( 'projectId' , 'Ember' ) ;
113
106
this . set ( 'emberVersion' , '2.4.3' ) ;
114
107
this . set ( 'moduleIDs' , MODULES ) ;
115
108
116
109
await render ( hbs `
117
- {{
118
- table-of-contents showPrivateClasses=true
119
- projectid=projectId
120
- version=emberVersion
121
- moduleIDs=moduleIDs
122
- isShowingNamespaces=true
123
- }}
110
+ <TableOfContents
111
+ @showPrivateClasses={{true}}
112
+ @version={{this.emberVersion}}
113
+ @moduleIDs={{this.moduleIDs}}
114
+ @isShowingNamespaces={{true}}
115
+ />
124
116
` ) ;
125
117
126
118
const titleButton = document . querySelector (
0 commit comments