Skip to content

Commit

Permalink
tests: update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Phillippa authored and khamui committed Apr 11, 2023
1 parent cd2f6e5 commit 13cf734
Show file tree
Hide file tree
Showing 5 changed files with 439 additions and 284 deletions.
5 changes: 4 additions & 1 deletion src/components/ButtonCounter.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ export const styles = StyleSheet.create({
},
disableText: {
color: COLORS.grey.medium,
fontFamily: FONTS.familySans
fontFamily: FONTS.familySans,
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center',
},
listText: {
fontSize: SIZES.sm,
Expand Down
138 changes: 118 additions & 20 deletions src/components/__tests__/__snapshots__/ButtonCounter.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ exports[`Test ButtonCounter 1`] = `
onStartShouldSetResponder={[Function]}
style={
Object {
"alignItems": "center",
"borderRadius": 6,
"marginBottom": 10,
"paddingBottom": 5,
"paddingLeft": 10,
"paddingRight": 10,
"paddingTop": 5,
"flexDirection": "row",
"justifyContent": "center",
"paddingHorizontal": 10,
"paddingVertical": 8,
}
}
>
Expand All @@ -48,13 +48,30 @@ exports[`Test ButtonCounter 1`] = `
Object {
"fontFamily": "SourceSansPro_600SemiBold",
"fontSize": 40,
"letterSpacing": 5,
"lineHeight": 42,
"marginRight": 5,
},
]
}
>
0
</Text>
<Text
style={
Array [
Object {
"fontFamily": "SourceSansPro_400Regular",
"fontSize": 36,
},
Object {
"fontFamily": "SourceSansPro_600SemiBold",
"fontSize": 40,
"lineHeight": 42,
"marginRight": 5,
},
]
}
>
<Text />
</Text>
</View>
Expand Down Expand Up @@ -98,6 +115,15 @@ exports[`Test ButtonCounter 10 1`] = `
}
>
10
</Text>
<Text
style={
Object {
"fontFamily": "SourceSansPro_400Regular",
"fontSize": 36,
}
}
>
<Text
allowFontScaling={false}
selectable={false}
Expand Down Expand Up @@ -151,6 +177,16 @@ exports[`Test ButtonCounter disabled 1`] = `
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
Object {
"alignItems": "center",
"borderRadius": 6,
"flexDirection": "row",
"justifyContent": "center",
"paddingHorizontal": 10,
"paddingVertical": 8,
}
}
>
<Text
style={
Expand All @@ -163,19 +199,47 @@ exports[`Test ButtonCounter disabled 1`] = `
Object {
"fontFamily": "SourceSansPro_600SemiBold",
"fontSize": 40,
"letterSpacing": 5,
"lineHeight": 42,
"marginRight": 5,
},
Object {
"alignItems": "center",
"color": "#666",
"flexDirection": "row",
"fontFamily": "SourceSansPro_400Regular",
"fontSize": 32,
"justifyContent": "center",
},
],
]
}
>
0
</Text>
<Text
style={
Array [
Object {
"fontFamily": "SourceSansPro_400Regular",
"fontSize": 36,
},
Array [
Object {
"fontFamily": "SourceSansPro_600SemiBold",
"fontSize": 40,
"lineHeight": 42,
"marginRight": 5,
},
Object {
"alignItems": "center",
"color": "#666",
"flexDirection": "row",
"fontFamily": "SourceSansPro_400Regular",
"justifyContent": "center",
},
],
]
}
>
<Text
allowFontScaling={false}
selectable={false}
Expand Down Expand Up @@ -231,12 +295,12 @@ exports[`Test ButtonCounter highlight 1`] = `
onStartShouldSetResponder={[Function]}
style={
Object {
"alignItems": "center",
"borderRadius": 6,
"marginBottom": 10,
"paddingBottom": 5,
"paddingLeft": 10,
"paddingRight": 10,
"paddingTop": 5,
"flexDirection": "row",
"justifyContent": "center",
"paddingHorizontal": 10,
"paddingVertical": 8,
}
}
>
Expand All @@ -250,13 +314,30 @@ exports[`Test ButtonCounter highlight 1`] = `
Object {
"fontFamily": "SourceSansPro_600SemiBold",
"fontSize": 40,
"letterSpacing": 5,
"lineHeight": 42,
"marginRight": 5,
},
]
}
>
0
</Text>
<Text
style={
Array [
Object {
"fontFamily": "SourceSansPro_400Regular",
"fontSize": 36,
},
Object {
"fontFamily": "SourceSansPro_600SemiBold",
"fontSize": 40,
"lineHeight": 42,
"marginRight": 5,
},
]
}
>
<Text
allowFontScaling={false}
selectable={false}
Expand Down Expand Up @@ -312,12 +393,12 @@ exports[`Test ButtonCounter highlight 10 1`] = `
onStartShouldSetResponder={[Function]}
style={
Object {
"alignItems": "center",
"borderRadius": 6,
"marginBottom": 10,
"paddingBottom": 5,
"paddingLeft": 10,
"paddingRight": 10,
"paddingTop": 5,
"flexDirection": "row",
"justifyContent": "center",
"paddingHorizontal": 10,
"paddingVertical": 8,
}
}
>
Expand All @@ -331,13 +412,30 @@ exports[`Test ButtonCounter highlight 10 1`] = `
Object {
"fontFamily": "SourceSansPro_600SemiBold",
"fontSize": 40,
"letterSpacing": 5,
"lineHeight": 42,
"marginRight": 5,
},
]
}
>
0
</Text>
<Text
style={
Array [
Object {
"fontFamily": "SourceSansPro_400Regular",
"fontSize": 36,
},
Object {
"fontFamily": "SourceSansPro_600SemiBold",
"fontSize": 40,
"lineHeight": 42,
"marginRight": 5,
},
]
}
>
<Text
allowFontScaling={false}
selectable={false}
Expand Down
Loading

0 comments on commit 13cf734

Please sign in to comment.