@@ -26,9 +26,10 @@ test('should align attributes vertically', () => {
26
26
27
27
expect ( format ( html ) ) . toEqual (
28
28
`
29
- <input name="test"
30
- value="true"
31
- class="form-control"
29
+ <input
30
+ name="test"
31
+ value="true"
32
+ class="form-control"
32
33
>
33
34
`
34
35
) ;
@@ -106,8 +107,9 @@ test('should support xml', () => {
106
107
const xml = `<?xml version="1.0" encoding="utf-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://www.example.com</loc></url><url><loc>https://www.example.com/test</loc></url></urlset>` ;
107
108
108
109
expect ( format ( xml ) ) . toEqual ( `
109
- <?xml version="1.0"
110
- encoding="utf-8"
110
+ <?xml
111
+ version="1.0"
112
+ encoding="utf-8"
111
113
?>
112
114
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
113
115
<url>
@@ -176,13 +178,15 @@ test('should support html directives', () => {
176
178
177
179
expect ( format ( html ) ) . toEqual ( `
178
180
<!doctype html>
179
- <html class="no-js"
180
- lang
181
+ <html
182
+ class="no-js"
183
+ lang
181
184
>
182
185
<head>
183
186
<meta charset="utf-8">
184
- <meta http-equiv="x-ua-compatible"
185
- content="ie=edge"
187
+ <meta
188
+ http-equiv="x-ua-compatible"
189
+ content="ie=edge"
186
190
>
187
191
<title>
188
192
test
@@ -195,9 +199,10 @@ test('should support html directives', () => {
195
199
<p>
196
200
Hello world! This is HTML5 Boilerplate.
197
201
</p>
198
- <script src="https://code.jquery.com/jquery-{{JQUERY_VERSION}}.min.js"
199
- integrity="{{JQUERY_SRI_HASH}}"
200
- crossorigin="anonymous"
202
+ <script
203
+ src="https://code.jquery.com/jquery-{{JQUERY_VERSION}}.min.js"
204
+ integrity="{{JQUERY_SRI_HASH}}"
205
+ crossorigin="anonymous"
201
206
>
202
207
</script>
203
208
<script src="js/plugins.js">
@@ -208,9 +213,10 @@ test('should support html directives', () => {
208
213
window.ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date;
209
214
ga('create','UA-XXXXX-Y','auto');ga('send','pageview')
210
215
</script>
211
- <script src="https://www.google-analytics.com/analytics.js"
212
- async
213
- defer
216
+ <script
217
+ src="https://www.google-analytics.com/analytics.js"
218
+ async
219
+ defer
214
220
>
215
221
</script>
216
222
</body>
@@ -269,9 +275,10 @@ test('should sort attributes with `sortAttributes` function', () => {
269
275
const sortAttributes = ( names ) => names . sort ( ) ;
270
276
expect ( format ( html , { sortAttributes } ) ) . toEqual (
271
277
`
272
- <input class="form-control"
273
- name="test"
274
- value="true"
278
+ <input
279
+ class="form-control"
280
+ name="test"
281
+ value="true"
275
282
>
276
283
`
277
284
) ;
0 commit comments