Skip to content

Commit ba266eb

Browse files
committed
Fix indent
1 parent 1b68917 commit ba266eb

File tree

2 files changed

+39
-39
lines changed

2 files changed

+39
-39
lines changed

test/attribute.js

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,27 @@ var to = require('..');
77

88
test('`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-
/Invalid quote ```, expected `'` or `"`/,
180-
'should throw on invalid quotes'
176+
function () {
177+
to(h('img'), {quote: '`'});
178+
},
179+
/Invalid quote ```, expected `'` or `"`/,
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(

test/element.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ test('`element`', function (t) {
4343
);
4444

4545
t.deepEqual(
46-
to(h('img', {title: '/'}), {
47-
preferUnquoted: true,
48-
closeSelfClosing: true,
49-
tightSelfClosing: true
50-
}),
51-
'<img title=/ />',
52-
'should stringify voids with a ` /` in if an unquoted ' +
53-
'attribute ends with `/`'
46+
to(h('img', {title: '/'}), {
47+
preferUnquoted: true,
48+
closeSelfClosing: true,
49+
tightSelfClosing: true
50+
}),
51+
'<img title=/ />',
52+
'should stringify voids with a ` /` in if an unquoted ' +
53+
'attribute ends with `/`'
5454
);
5555

5656
t.end();

0 commit comments

Comments
 (0)