@@ -7,27 +7,27 @@ var to = require('..');
7
7
8
8
test ( '`element` attributes' , function ( t ) {
9
9
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'
13
13
) ;
14
14
15
15
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'
19
19
) ;
20
20
21
21
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'
25
25
) ;
26
26
27
27
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'
31
31
) ;
32
32
33
33
t . deepEqual (
@@ -154,37 +154,37 @@ test('`element` attributes', function (t) {
154
154
) ;
155
155
156
156
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'
160
160
) ;
161
161
162
162
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'
166
166
) ;
167
167
168
168
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: \'\\\'\'`'
173
173
) ;
174
174
175
175
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'
181
181
) ;
182
182
183
183
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: \'"\'`'
188
188
) ;
189
189
190
190
t . deepEqual (
0 commit comments