@@ -7,27 +7,27 @@ var to = require('..');
77
88test ( '`element` attributes' , function ( t ) {
99 t . deepEqual (
10- to ( h ( 'i' , { className : [ 'alpha' ] } , 'bravo' ) ) ,
11- '<i class="alpha">bravo</i>' ,
12- 'should stringify special camel-cased properties'
10+ to ( h ( 'i' , { className : [ 'alpha' ] } , 'bravo' ) ) ,
11+ '<i class="alpha">bravo</i>' ,
12+ 'should stringify special camel-cased properties'
1313 ) ;
1414
1515 t . deepEqual (
16- to ( h ( 'i' , { dataFoo : 'alpha' } , 'bravo' ) ) ,
17- '<i data-foo="alpha">bravo</i>' ,
18- 'should stringify camel-cased properties'
16+ to ( h ( 'i' , { dataFoo : 'alpha' } , 'bravo' ) ) ,
17+ '<i data-foo="alpha">bravo</i>' ,
18+ 'should stringify camel-cased properties'
1919 ) ;
2020
2121 t . deepEqual (
22- to ( h ( 'i' , { data123 : 'alpha' } , 'bravo' ) ) ,
23- '<i data-123="alpha">bravo</i>' ,
24- 'should stringify numeric `data-` properties'
22+ to ( h ( 'i' , { data123 : 'alpha' } , 'bravo' ) ) ,
23+ '<i data-123="alpha">bravo</i>' ,
24+ 'should stringify numeric `data-` properties'
2525 ) ;
2626
2727 t . deepEqual (
28- to ( h ( 'img' , { alt : '' } ) ) ,
29- '<img alt="">' ,
30- 'should show empty string attributes'
28+ to ( h ( 'img' , { alt : '' } ) ) ,
29+ '<img alt="">' ,
30+ 'should show empty string attributes'
3131 ) ;
3232
3333 t . deepEqual (
@@ -154,37 +154,37 @@ test('`element` attributes', function (t) {
154154 ) ;
155155
156156 t . deepEqual (
157- to ( h ( 'i' , { id : '' } , 'bravo' ) ) ,
158- '<i id="">bravo</i>' ,
159- 'should stringify other falsey attributes'
157+ to ( h ( 'i' , { id : '' } , 'bravo' ) ) ,
158+ '<i id="">bravo</i>' ,
159+ 'should stringify other falsey attributes'
160160 ) ;
161161
162162 t . deepEqual (
163- to ( h ( 'i' , { id : true } , 'bravo' ) ) ,
164- '<i id="true">bravo</i>' ,
165- 'should stringify other non-string attributes'
163+ to ( h ( 'i' , { id : true } , 'bravo' ) ) ,
164+ '<i id="true">bravo</i>' ,
165+ 'should stringify other non-string attributes'
166166 ) ;
167167
168168 t . deepEqual (
169- to ( h ( 'img' , { alt : '' } ) , { quote : '\'' } ) ,
170- '<img alt=\'\'>' ,
171- 'should quote attribute values with single quotes is ' +
172- '`quote: \'\\\'\'`'
169+ to ( h ( 'img' , { alt : '' } ) , { quote : '\'' } ) ,
170+ '<img alt=\'\'>' ,
171+ 'should quote attribute values with single quotes is ' +
172+ '`quote: \'\\\'\'`'
173173 ) ;
174174
175175 t . throws (
176- function ( ) {
177- to ( h ( 'img' ) , { quote : '`' } ) ;
178- } ,
179- / I n v a l i d q u o t e ` ` ` , e x p e c t e d ` ' ` o r ` " ` / ,
180- 'should throw on invalid quotes'
176+ function ( ) {
177+ to ( h ( 'img' ) , { quote : '`' } ) ;
178+ } ,
179+ / I n v a l i d q u o t e ` ` ` , e x p e c t e d ` ' ` o r ` " ` / ,
180+ 'should throw on invalid quotes'
181181 ) ;
182182
183183 t . deepEqual (
184- to ( h ( 'img' , { alt : '' } ) , { quote : '"' } ) ,
185- '<img alt="">' ,
186- 'should quote attribute values with single quotes is ' +
187- '`quote: \'"\'`'
184+ to ( h ( 'img' , { alt : '' } ) , { quote : '"' } ) ,
185+ '<img alt="">' ,
186+ 'should quote attribute values with single quotes is ' +
187+ '`quote: \'"\'`'
188188 ) ;
189189
190190 t . deepEqual (
0 commit comments