@@ -18,10 +18,12 @@ describe('changelog-template', function() {
18
18
19
19
let changelog = changelogTemplate ( context ) ;
20
20
21
- equal ( changelog , '<a name="release1"></a>' ) ;
21
+ equal ( changelog , `<a name="release1"></a>
22
+
23
+ ` ) ;
22
24
} ) ;
23
25
24
- it ( 'Adds bullet list entry for each top level leaf' , function ( ) {
26
+ it ( 'Adds h1 entry for each top level leaf' , function ( ) {
25
27
let root = new ChangelogEntry ( 'root' ) ;
26
28
27
29
let context = {
@@ -35,7 +37,9 @@ describe('changelog-template', function() {
35
37
36
38
equal ( changelog ,
37
39
`<a name="release1"></a>
38
- - root` ) ;
40
+ # root
41
+
42
+ ` ) ;
39
43
} ) ;
40
44
41
45
it ( 'Render subject for non leaf entries as title' , function ( ) {
@@ -55,7 +59,9 @@ describe('changelog-template', function() {
55
59
`<a name="release1"></a>
56
60
# root
57
61
58
- - child1` ) ;
62
+ - child1
63
+
64
+ ` ) ;
59
65
} ) ;
60
66
61
67
it ( 'Adds a space before >2nd level titles' , function ( ) {
@@ -80,7 +86,9 @@ describe('changelog-template', function() {
80
86
81
87
## child1
82
88
83
- - child2` ) ;
89
+ - child2
90
+
91
+ ` ) ;
84
92
} ) ;
85
93
86
94
it ( 'Does not add a space after leaf entries' , function ( ) {
@@ -108,7 +116,9 @@ describe('changelog-template', function() {
108
116
## child1
109
117
110
118
- child2
111
- - child3` ) ;
119
+ - child3
120
+
121
+ ` ) ;
112
122
} ) ;
113
123
114
124
it ( 'renders one link' , function ( ) {
@@ -126,7 +136,9 @@ describe('changelog-template', function() {
126
136
127
137
equal ( changelog ,
128
138
`<a name="release1"></a>
129
- - root ([link 1](link-1-url))` ) ;
139
+ # root ([link 1](link-1-url))
140
+
141
+ ` ) ;
130
142
} ) ;
131
143
132
144
it ( 'renders two or more link comma separated' , function ( ) {
@@ -145,7 +157,9 @@ describe('changelog-template', function() {
145
157
146
158
equal ( changelog ,
147
159
`<a name="release1"></a>
148
- - root ([link 1](link-1-url), [link 2](link-2-url))` ) ;
160
+ # root ([link 1](link-1-url), [link 2](link-2-url))
161
+
162
+ ` ) ;
149
163
} ) ;
150
164
151
165
it ( 'renders scope in bold' , function ( ) {
@@ -163,7 +177,9 @@ describe('changelog-template', function() {
163
177
164
178
equal ( changelog ,
165
179
`<a name="release1"></a>
166
- - **feat** - root` ) ;
180
+ # **feat** - root
181
+
182
+ ` ) ;
167
183
} ) ;
168
184
169
185
it ( 'renders subject link' , function ( ) {
@@ -181,6 +197,8 @@ describe('changelog-template', function() {
181
197
182
198
equal ( changelog ,
183
199
`<a name="release1"></a>
184
- - [root](xyz)` ) ;
200
+ # [root](xyz)
201
+
202
+ ` ) ;
185
203
} ) ;
186
204
} ) ;
0 commit comments