Skip to content

Commit d7bbd68

Browse files
committed
fix: tests
1 parent 7e38017 commit d7bbd68

22 files changed

Lines changed: 83 additions & 773 deletions

src/components/Chip/Chip.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,6 @@ const styles = StyleSheet.create({
433433
paddingLeft: 0,
434434
position: 'relative',
435435
},
436-
437436
icon: {
438437
padding: 4,
439438
paddingLeft: 8,

src/components/Drawer/DrawerSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const DrawerSection = ({
100100
)}
101101
{children}
102102
{showDivider && (
103-
<Divider horizontalInset style={styles.divider} theme={theme} />
103+
<Divider horizontalInset bold style={styles.divider} theme={theme} />
104104
)}
105105
</View>
106106
);

src/components/__tests__/Appbar/__snapshots__/Appbar.test.tsx.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,6 @@ exports[`Appbar passes additional props to AppbarBackAction, AppbarContent and A
683683
"letterSpacing": 0,
684684
"lineHeight": 28,
685685
},
686-
false,
687686
undefined,
688687
],
689688
],

src/components/__tests__/Checkbox/__snapshots__/CheckboxItem.test.tsx.snap

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ exports[`can render leading checkbox control 1`] = `
163163
"flexGrow": 1,
164164
"flexShrink": 1,
165165
},
166-
false,
167166
{
168167
"color": "rgba(28, 27, 31, 1)",
169168
"textAlign": "right",
@@ -261,7 +260,6 @@ exports[`can render the Android checkbox on different platforms 1`] = `
261260
"flexGrow": 1,
262261
"flexShrink": 1,
263262
},
264-
false,
265263
{
266264
"color": "rgba(28, 27, 31, 1)",
267265
"textAlign": "left",
@@ -478,7 +476,6 @@ exports[`can render the iOS checkbox on different platforms 1`] = `
478476
"flexGrow": 1,
479477
"flexShrink": 1,
480478
},
481-
false,
482479
{
483480
"color": "rgba(28, 27, 31, 1)",
484481
"textAlign": "left",
@@ -659,7 +656,6 @@ exports[`renders unchecked 1`] = `
659656
"flexGrow": 1,
660657
"flexShrink": 1,
661658
},
662-
false,
663659
{
664660
"color": "rgba(28, 27, 31, 1)",
665661
"textAlign": "left",

src/components/__tests__/Drawer/__snapshots__/DrawerSection.test.tsx.snap

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,10 @@ exports[`DrawerSection renders properly 1`] = `
2727
{
2828
"height": 1,
2929
},
30-
[
31-
{
32-
"marginTop": 4,
33-
},
34-
{
35-
"backgroundColor": "rgba(121, 116, 126, 1)",
36-
},
37-
],
30+
{
31+
"backgroundColor": "rgba(121, 116, 126, 1)",
32+
"marginTop": 4,
33+
},
3834
]
3935
}
4036
/>

src/components/__tests__/ListAccordion.test.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -115,18 +115,6 @@ describe('ListAccordion', () => {
115115
});
116116
});
117117

118-
describe('getAccordionColors - title color', () => {
119-
it('should return theme color, for theme version 3', () => {
120-
expect(
121-
getAccordionColors({
122-
theme: getTheme(),
123-
})
124-
).toMatchObject({
125-
titleColor: getTheme().colors.onSurface,
126-
});
127-
});
128-
});
129-
130118
describe('getAccordionColors - description color', () => {
131119
it('should return theme color, for theme version 3', () => {
132120
expect(

src/components/__tests__/RadioButton/__snapshots__/RadioButtonItem.test.tsx.snap

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ exports[`can render leading radio button control 1`] = `
161161
"flexGrow": 1,
162162
"flexShrink": 1,
163163
},
164-
false,
165164
{
166165
"color": "rgba(28, 27, 31, 1)",
167166
"textAlign": "right",
@@ -256,7 +255,6 @@ exports[`can render the Android radio button on different platforms 1`] = `
256255
"flexGrow": 1,
257256
"flexShrink": 1,
258257
},
259-
false,
260258
{
261259
"color": "rgba(28, 27, 31, 1)",
262260
"textAlign": "left",
@@ -408,7 +406,6 @@ exports[`can render the iOS radio button on different platforms 1`] = `
408406
"flexGrow": 1,
409407
"flexShrink": 1,
410408
},
411-
false,
412409
{
413410
"color": "rgba(28, 27, 31, 1)",
414411
"textAlign": "left",
@@ -586,7 +583,6 @@ exports[`renders unchecked 1`] = `
586583
"flexGrow": 1,
587584
"flexShrink": 1,
588585
},
589-
false,
590586
{
591587
"color": "rgba(28, 27, 31, 1)",
592588
"textAlign": "left",

src/components/__tests__/Typography/__snapshots__/Caption.test.tsx.snap

Lines changed: 0 additions & 74 deletions
This file was deleted.

src/components/__tests__/__snapshots__/AnimatedFAB.test.tsx.snap

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ exports[`renders animated fab 1`] = `
4747
collapsable={false}
4848
style={
4949
[
50-
false,
5150
{
5251
"height": 56,
5352
},
@@ -343,7 +342,6 @@ exports[`renders animated fab with label on the left 1`] = `
343342
collapsable={false}
344343
style={
345344
[
346-
false,
347345
{
348346
"height": 56,
349347
},
@@ -641,7 +639,6 @@ exports[`renders animated fab with label on the right by default 1`] = `
641639
collapsable={false}
642640
style={
643641
[
644-
false,
645642
{
646643
"height": 56,
647644
},

src/components/__tests__/__snapshots__/Banner.test.tsx.snap

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ exports[`render visible banner, with custom theme 1`] = `
239239
"marginVertical": 9,
240240
"textAlign": "center",
241241
},
242-
false,
243242
{
244243
"marginHorizontal": 12,
245244
},
@@ -667,7 +666,6 @@ exports[`renders visible banner, with action buttons and with image 1`] = `
667666
"marginVertical": 9,
668667
"textAlign": "center",
669668
},
670-
false,
671669
{
672670
"marginHorizontal": 12,
673671
},
@@ -942,7 +940,6 @@ exports[`renders visible banner, with action buttons and without image 1`] = `
942940
"marginVertical": 9,
943941
"textAlign": "center",
944942
},
945-
false,
946943
{
947944
"marginHorizontal": 12,
948945
},
@@ -1092,7 +1089,6 @@ exports[`renders visible banner, with action buttons and without image 1`] = `
10921089
"marginVertical": 9,
10931090
"textAlign": "center",
10941091
},
1095-
false,
10961092
{
10971093
"marginHorizontal": 12,
10981094
},

0 commit comments

Comments
 (0)