Skip to content

Commit 036b95e

Browse files
committed
fix: lint issues and tests
1 parent d334d7d commit 036b95e

File tree

3 files changed

+46
-30
lines changed

3 files changed

+46
-30
lines changed

package/src/components/MessageInput/__tests__/__snapshots__/AttachButton.test.js.snap

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
8787
align="xMidYMid"
8888
bbHeight={20}
8989
bbWidth={20}
90+
fill="none"
9091
focusable={false}
9192
height={20}
9293
meetOrSlice={0}
@@ -112,14 +113,10 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
112113
width={20}
113114
>
114115
<RNSVGGroup
115-
fill={
116-
{
117-
"payload": 4278190080,
118-
"type": 0,
119-
}
120-
}
116+
fill={null}
121117
propList={
122118
[
119+
"fill",
123120
"stroke",
124121
"strokeWidth",
125122
]
@@ -144,6 +141,8 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
144141
[
145142
"stroke",
146143
"strokeWidth",
144+
"strokeLinecap",
145+
"strokeLinejoin",
147146
]
148147
}
149148
stroke={
@@ -152,6 +151,8 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
152151
"type": 0,
153152
}
154153
}
154+
strokeLinecap={1}
155+
strokeLinejoin={1}
155156
strokeWidth={1.5}
156157
/>
157158
</RNSVGGroup>
@@ -613,7 +614,7 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
613614
}
614615
strokeLinecap={1}
615616
strokeLinejoin={1}
616-
strokeWidth={1.2}
617+
strokeWidth={1.5}
617618
/>
618619
</RNSVGGroup>
619620
</RNSVGSvgView>
@@ -748,6 +749,7 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
748749
[
749750
"stroke",
750751
"strokeWidth",
752+
"strokeLinecap",
751753
"strokeLinejoin",
752754
]
753755
}
@@ -757,6 +759,7 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
757759
"type": 0,
758760
}
759761
}
762+
strokeLinecap={1}
760763
strokeLinejoin={1}
761764
strokeWidth={1.5}
762765
/>
@@ -982,6 +985,7 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
982985
align="xMidYMid"
983986
bbHeight={20}
984987
bbWidth={20}
988+
fill="none"
985989
focusable={false}
986990
height={20}
987991
meetOrSlice={0}
@@ -1007,14 +1011,10 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
10071011
width={20}
10081012
>
10091013
<RNSVGGroup
1010-
fill={
1011-
{
1012-
"payload": 4278190080,
1013-
"type": 0,
1014-
}
1015-
}
1014+
fill={null}
10161015
propList={
10171016
[
1017+
"fill",
10181018
"stroke",
10191019
"strokeWidth",
10201020
]
@@ -1039,6 +1039,8 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
10391039
[
10401040
"stroke",
10411041
"strokeWidth",
1042+
"strokeLinecap",
1043+
"strokeLinejoin",
10421044
]
10431045
}
10441046
stroke={
@@ -1047,6 +1049,8 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
10471049
"type": 0,
10481050
}
10491051
}
1052+
strokeLinecap={1}
1053+
strokeLinejoin={1}
10501054
strokeWidth={1.5}
10511055
/>
10521056
</RNSVGGroup>
@@ -1508,7 +1512,7 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
15081512
}
15091513
strokeLinecap={1}
15101514
strokeLinejoin={1}
1511-
strokeWidth={1.2}
1515+
strokeWidth={1.5}
15121516
/>
15131517
</RNSVGGroup>
15141518
</RNSVGSvgView>
@@ -1643,6 +1647,7 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
16431647
[
16441648
"stroke",
16451649
"strokeWidth",
1650+
"strokeLinecap",
16461651
"strokeLinejoin",
16471652
]
16481653
}
@@ -1652,6 +1657,7 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
16521657
"type": 0,
16531658
}
16541659
}
1660+
strokeLinecap={1}
16551661
strokeLinejoin={1}
16561662
strokeWidth={1.5}
16571663
/>
@@ -1877,6 +1883,7 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
18771883
align="xMidYMid"
18781884
bbHeight={20}
18791885
bbWidth={20}
1886+
fill="none"
18801887
focusable={false}
18811888
height={20}
18821889
meetOrSlice={0}
@@ -1902,14 +1909,10 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
19021909
width={20}
19031910
>
19041911
<RNSVGGroup
1905-
fill={
1906-
{
1907-
"payload": 4278190080,
1908-
"type": 0,
1909-
}
1910-
}
1912+
fill={null}
19111913
propList={
19121914
[
1915+
"fill",
19131916
"stroke",
19141917
"strokeWidth",
19151918
]
@@ -1934,6 +1937,8 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
19341937
[
19351938
"stroke",
19361939
"strokeWidth",
1940+
"strokeLinecap",
1941+
"strokeLinejoin",
19371942
]
19381943
}
19391944
stroke={
@@ -1942,6 +1947,8 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
19421947
"type": 0,
19431948
}
19441949
}
1950+
strokeLinecap={1}
1951+
strokeLinejoin={1}
19451952
strokeWidth={1.5}
19461953
/>
19471954
</RNSVGGroup>
@@ -2403,7 +2410,7 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
24032410
}
24042411
strokeLinecap={1}
24052412
strokeLinejoin={1}
2406-
strokeWidth={1.2}
2413+
strokeWidth={1.5}
24072414
/>
24082415
</RNSVGGroup>
24092416
</RNSVGSvgView>
@@ -2538,6 +2545,7 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
25382545
[
25392546
"stroke",
25402547
"strokeWidth",
2548+
"strokeLinecap",
25412549
"strokeLinejoin",
25422550
]
25432551
}
@@ -2547,6 +2555,7 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
25472555
"type": 0,
25482556
}
25492557
}
2558+
strokeLinecap={1}
25502559
strokeLinejoin={1}
25512560
strokeWidth={1.5}
25522561
/>

package/src/components/MessageInput/__tests__/__snapshots__/SendButton.test.js.snap

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ exports[`SendButton should render a SendButton 1`] = `
603603
}
604604
strokeLinecap={1}
605605
strokeLinejoin={1}
606-
strokeWidth={1.2}
606+
strokeWidth={1.5}
607607
/>
608608
</RNSVGGroup>
609609
</RNSVGSvgView>
@@ -738,6 +738,7 @@ exports[`SendButton should render a SendButton 1`] = `
738738
[
739739
"stroke",
740740
"strokeWidth",
741+
"strokeLinecap",
741742
"strokeLinejoin",
742743
]
743744
}
@@ -747,6 +748,7 @@ exports[`SendButton should render a SendButton 1`] = `
747748
"type": 0,
748749
}
749750
}
751+
strokeLinecap={1}
750752
strokeLinejoin={1}
751753
strokeWidth={1.5}
752754
/>
@@ -1488,7 +1490,7 @@ exports[`SendButton should render a disabled SendButton 1`] = `
14881490
}
14891491
strokeLinecap={1}
14901492
strokeLinejoin={1}
1491-
strokeWidth={1.2}
1493+
strokeWidth={1.5}
14921494
/>
14931495
</RNSVGGroup>
14941496
</RNSVGSvgView>
@@ -1623,6 +1625,7 @@ exports[`SendButton should render a disabled SendButton 1`] = `
16231625
[
16241626
"stroke",
16251627
"strokeWidth",
1628+
"strokeLinecap",
16261629
"strokeLinejoin",
16271630
]
16281631
}
@@ -1632,6 +1635,7 @@ exports[`SendButton should render a disabled SendButton 1`] = `
16321635
"type": 0,
16331636
}
16341637
}
1638+
strokeLinecap={1}
16351639
strokeLinejoin={1}
16361640
strokeWidth={1.5}
16371641
/>

package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1883,6 +1883,7 @@ exports[`Thread should match thread snapshot 1`] = `
18831883
align="xMidYMid"
18841884
bbHeight={20}
18851885
bbWidth={20}
1886+
fill="none"
18861887
focusable={false}
18871888
height={20}
18881889
meetOrSlice={0}
@@ -1908,14 +1909,10 @@ exports[`Thread should match thread snapshot 1`] = `
19081909
width={20}
19091910
>
19101911
<RNSVGGroup
1911-
fill={
1912-
{
1913-
"payload": 4278190080,
1914-
"type": 0,
1915-
}
1916-
}
1912+
fill={null}
19171913
propList={
19181914
[
1915+
"fill",
19191916
"stroke",
19201917
"strokeWidth",
19211918
]
@@ -1940,6 +1937,8 @@ exports[`Thread should match thread snapshot 1`] = `
19401937
[
19411938
"stroke",
19421939
"strokeWidth",
1940+
"strokeLinecap",
1941+
"strokeLinejoin",
19431942
]
19441943
}
19451944
stroke={
@@ -1948,6 +1947,8 @@ exports[`Thread should match thread snapshot 1`] = `
19481947
"type": 0,
19491948
}
19501949
}
1950+
strokeLinecap={1}
1951+
strokeLinejoin={1}
19511952
strokeWidth={1.5}
19521953
/>
19531954
</RNSVGGroup>
@@ -2787,7 +2788,7 @@ exports[`Thread should match thread snapshot 1`] = `
27872788
}
27882789
strokeLinecap={1}
27892790
strokeLinejoin={1}
2790-
strokeWidth={1.2}
2791+
strokeWidth={1.5}
27912792
/>
27922793
</RNSVGGroup>
27932794
</RNSVGSvgView>
@@ -2922,6 +2923,7 @@ exports[`Thread should match thread snapshot 1`] = `
29222923
[
29232924
"stroke",
29242925
"strokeWidth",
2926+
"strokeLinecap",
29252927
"strokeLinejoin",
29262928
]
29272929
}
@@ -2931,6 +2933,7 @@ exports[`Thread should match thread snapshot 1`] = `
29312933
"type": 0,
29322934
}
29332935
}
2936+
strokeLinecap={1}
29342937
strokeLinejoin={1}
29352938
strokeWidth={1.5}
29362939
/>

0 commit comments

Comments
 (0)