Skip to content

Commit

Permalink
fix thing
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Dec 12, 2024
1 parent 9098955 commit 29ba887
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 49 deletions.
16 changes: 16 additions & 0 deletions packages/styled/__tests__/__snapshots__/styled.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,17 @@ exports[`styled no prop filtering on non string tags 1`] = `
}
<a
a="true"
aria-label="some label"
b="true"
class="emotion-0"
cool="true"
data-wow="value"
filtering="true"
href="link"
is="true"
prop="true"
wow="true"
>
hello world
</a>
Expand All @@ -391,10 +398,17 @@ exports[`styled no prop filtering on string tags started with upper case 1`] = `
}
<somecustomlink
a="true"
aria-label="some label"
b="true"
class="emotion-0"
cool="true"
data-wow="value"
filtering="true"
href="link"
is="true"
prop="true"
wow="true"
>
hello world
</somecustomlink>
Expand Down Expand Up @@ -489,6 +503,7 @@ exports[`styled prop filtering 1`] = `
class="emotion-0"
data-wow="value"
href="link"
is="true"
>
hello world
</a>
Expand All @@ -505,6 +520,7 @@ exports[`styled prop filtering on composed styled components that are string tag
class="emotion-0"
data-wow="value"
href="link"
is="true"
>
hello world
</a>
Expand Down
56 changes: 28 additions & 28 deletions packages/styled/__tests__/styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,13 +466,13 @@ describe('styled', () => {

const { container } = render(
<Link
a
b
wow
prop
filtering
is
cool
a="true"
b="true"
wow="true"
prop="true"
filtering="true"
is="true"
cool="true"
aria-label="some label"
data-wow="value"
href="link"
Expand All @@ -491,13 +491,13 @@ describe('styled', () => {

const { container } = render(
<Link
a
b
wow
prop
filtering
is
cool
a="true"
b="true"
wow="true"
prop="true"
filtering="true"
is="true"
cool="true"
aria-label="some label"
data-wow="value"
href="link"
Expand All @@ -516,13 +516,13 @@ describe('styled', () => {

const { container } = render(
<Link
a
b
wow
prop
filtering
is
cool
a="true"
b="true"
wow="true"
prop="true"
filtering="true"
is="true"
cool="true"
aria-label="some label"
data-wow="value"
href="link"
Expand All @@ -544,13 +544,13 @@ describe('styled', () => {

const { container } = render(
<Link
a
b
wow
prop
filtering
is
cool
a="true"
b="true"
wow="true"
prop="true"
filtering="true"
is="true"
cool="true"
aria-label="some label"
data-wow="value"
href="link"
Expand Down
15 changes: 15 additions & 0 deletions packages/styled/test/__snapshots__/prop-filtering.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,17 @@ exports[`no prop filtering on non string tags 1`] = `
}
<a
a="true"
aria-label="some label"
b="true"
class="emotion-0 emotion-1"
cool="true"
data-wow="value"
filtering="true"
href="link"
is="true"
prop="true"
wow="true"
>
hello world
</a>
Expand All @@ -48,10 +55,17 @@ exports[`no prop filtering on string tags started with upper case 1`] = `
}
<somecustomlink
a="true"
aria-label="some label"
b="true"
class="emotion-0 emotion-1"
cool="true"
data-wow="value"
filtering="true"
href="link"
is="true"
prop="true"
wow="true"
>
hello world
</somecustomlink>
Expand All @@ -67,6 +81,7 @@ exports[`prop filtering 1`] = `
class="emotion-0 emotion-1"
data-wow="value"
href="link"
is="true"
>
hello world
</a>
Expand Down
42 changes: 21 additions & 21 deletions packages/styled/test/prop-filtering.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ test('prop filtering', () => {

const { container } = render(
<Link
a
b
wow
prop
filtering
is
cool
a="true"
b="true"
wow="true"
prop="true"
filtering="true"
is="true"
cool="true"
aria-label="some label"
data-wow="value"
href="link"
Expand All @@ -98,13 +98,13 @@ test('no prop filtering on non string tags', () => {

const { container } = render(
<Link
a
b
wow
prop
filtering
is
cool
a="true"
b="true"
wow="true"
prop="true"
filtering="true"
is="true"
cool="true"
aria-label="some label"
data-wow="value"
href="link"
Expand All @@ -123,13 +123,13 @@ test('no prop filtering on string tags started with upper case', () => {

const { container } = render(
<Link
a
b
wow
prop
filtering
is
cool
a="true"
b="true"
wow="true"
prop="true"
filtering="true"
is="true"
cool="true"
aria-label="some label"
data-wow="value"
href="link"
Expand Down

0 comments on commit 29ba887

Please sign in to comment.