Skip to content

Commit 8082f02

Browse files
committed
fix thing
1 parent 8deec1f commit 8082f02

File tree

4 files changed

+80
-49
lines changed

4 files changed

+80
-49
lines changed

packages/styled/__tests__/__snapshots__/styled.js.snap

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,10 +376,17 @@ exports[`styled no prop filtering on non string tags 1`] = `
376376
}
377377
378378
<a
379+
a="true"
379380
aria-label="some label"
381+
b="true"
380382
class="emotion-0"
383+
cool="true"
381384
data-wow="value"
385+
filtering="true"
382386
href="link"
387+
is="true"
388+
prop="true"
389+
wow="true"
383390
>
384391
hello world
385392
</a>
@@ -391,10 +398,17 @@ exports[`styled no prop filtering on string tags started with upper case 1`] = `
391398
}
392399
393400
<somecustomlink
401+
a="true"
394402
aria-label="some label"
403+
b="true"
395404
class="emotion-0"
405+
cool="true"
396406
data-wow="value"
407+
filtering="true"
397408
href="link"
409+
is="true"
410+
prop="true"
411+
wow="true"
398412
>
399413
hello world
400414
</somecustomlink>
@@ -489,6 +503,7 @@ exports[`styled prop filtering 1`] = `
489503
class="emotion-0"
490504
data-wow="value"
491505
href="link"
506+
is="true"
492507
>
493508
hello world
494509
</a>
@@ -505,6 +520,7 @@ exports[`styled prop filtering on composed styled components that are string tag
505520
class="emotion-0"
506521
data-wow="value"
507522
href="link"
523+
is="true"
508524
>
509525
hello world
510526
</a>

packages/styled/__tests__/styled.js

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -466,13 +466,13 @@ describe('styled', () => {
466466

467467
const { container } = render(
468468
<Link
469-
a
470-
b
471-
wow
472-
prop
473-
filtering
474-
is
475-
cool
469+
a="true"
470+
b="true"
471+
wow="true"
472+
prop="true"
473+
filtering="true"
474+
is="true"
475+
cool="true"
476476
aria-label="some label"
477477
data-wow="value"
478478
href="link"
@@ -491,13 +491,13 @@ describe('styled', () => {
491491

492492
const { container } = render(
493493
<Link
494-
a
495-
b
496-
wow
497-
prop
498-
filtering
499-
is
500-
cool
494+
a="true"
495+
b="true"
496+
wow="true"
497+
prop="true"
498+
filtering="true"
499+
is="true"
500+
cool="true"
501501
aria-label="some label"
502502
data-wow="value"
503503
href="link"
@@ -516,13 +516,13 @@ describe('styled', () => {
516516

517517
const { container } = render(
518518
<Link
519-
a
520-
b
521-
wow
522-
prop
523-
filtering
524-
is
525-
cool
519+
a="true"
520+
b="true"
521+
wow="true"
522+
prop="true"
523+
filtering="true"
524+
is="true"
525+
cool="true"
526526
aria-label="some label"
527527
data-wow="value"
528528
href="link"
@@ -544,13 +544,13 @@ describe('styled', () => {
544544

545545
const { container } = render(
546546
<Link
547-
a
548-
b
549-
wow
550-
prop
551-
filtering
552-
is
553-
cool
547+
a="true"
548+
b="true"
549+
wow="true"
550+
prop="true"
551+
filtering="true"
552+
is="true"
553+
cool="true"
554554
aria-label="some label"
555555
data-wow="value"
556556
href="link"

packages/styled/test/__snapshots__/prop-filtering.test.js.snap

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,17 @@ exports[`no prop filtering on non string tags 1`] = `
3333
}
3434
3535
<a
36+
a="true"
3637
aria-label="some label"
38+
b="true"
3739
class="emotion-0 emotion-1"
40+
cool="true"
3841
data-wow="value"
42+
filtering="true"
3943
href="link"
44+
is="true"
45+
prop="true"
46+
wow="true"
4047
>
4148
hello world
4249
</a>
@@ -48,10 +55,17 @@ exports[`no prop filtering on string tags started with upper case 1`] = `
4855
}
4956
5057
<somecustomlink
58+
a="true"
5159
aria-label="some label"
60+
b="true"
5261
class="emotion-0 emotion-1"
62+
cool="true"
5363
data-wow="value"
64+
filtering="true"
5465
href="link"
66+
is="true"
67+
prop="true"
68+
wow="true"
5569
>
5670
hello world
5771
</somecustomlink>
@@ -67,6 +81,7 @@ exports[`prop filtering 1`] = `
6781
class="emotion-0 emotion-1"
6882
data-wow="value"
6983
href="link"
84+
is="true"
7085
>
7186
hello world
7287
</a>

packages/styled/test/prop-filtering.test.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ test('prop filtering', () => {
7373

7474
const { container } = render(
7575
<Link
76-
a
77-
b
78-
wow
79-
prop
80-
filtering
81-
is
82-
cool
76+
a="true"
77+
b="true"
78+
wow="true"
79+
prop="true"
80+
filtering="true"
81+
is="true"
82+
cool="true"
8383
aria-label="some label"
8484
data-wow="value"
8585
href="link"
@@ -98,13 +98,13 @@ test('no prop filtering on non string tags', () => {
9898

9999
const { container } = render(
100100
<Link
101-
a
102-
b
103-
wow
104-
prop
105-
filtering
106-
is
107-
cool
101+
a="true"
102+
b="true"
103+
wow="true"
104+
prop="true"
105+
filtering="true"
106+
is="true"
107+
cool="true"
108108
aria-label="some label"
109109
data-wow="value"
110110
href="link"
@@ -123,13 +123,13 @@ test('no prop filtering on string tags started with upper case', () => {
123123

124124
const { container } = render(
125125
<Link
126-
a
127-
b
128-
wow
129-
prop
130-
filtering
131-
is
132-
cool
126+
a="true"
127+
b="true"
128+
wow="true"
129+
prop="true"
130+
filtering="true"
131+
is="true"
132+
cool="true"
133133
aria-label="some label"
134134
data-wow="value"
135135
href="link"

0 commit comments

Comments
 (0)