Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BANG88 committed Aug 17, 2022
1 parent 2b4cb5e commit ad102b9
Show file tree
Hide file tree
Showing 5 changed files with 441 additions and 25 deletions.
165 changes: 155 additions & 10 deletions components/checkbox/__tests__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
}
>
<View
Color="#d9d9d9"
accessibilityRole="button"
accessibilityState={
Object {
Expand Down Expand Up @@ -331,6 +332,7 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
}
>
<View
Color="#d9d9d9"
accessibilityRole="button"
accessibilityState={
Object {
Expand Down Expand Up @@ -417,7 +419,22 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
/>
>
<View
style={
Array [
Object {
"backgroundColor": "transparent",
"marginLeft": 8,
"marginRight": 8,
},
Object {
"color": "#bbbbbb",
},
]
}
/>
</View>
</View>
<View
style={
Expand Down Expand Up @@ -521,6 +538,7 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
}
>
<View
Color="#1890ff"
accessibilityRole="button"
accessibilityState={
Object {
Expand Down Expand Up @@ -610,7 +628,22 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
/>
>
<View
style={
Array [
Object {
"backgroundColor": "transparent",
"marginLeft": 8,
"marginRight": 8,
},
Object {
"color": "#bbbbbb",
},
]
}
/>
</View>
</View>
<View
style={
Expand Down Expand Up @@ -758,6 +791,7 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
}
>
<View
Color="#1890ff"
accessibilityRole="button"
accessibilityState={
Object {
Expand Down Expand Up @@ -1152,6 +1186,7 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
}
>
<View
Color="#d9d9d9"
accessibilityRole="button"
accessibilityState={
Object {
Expand Down Expand Up @@ -1354,6 +1389,7 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
}
>
<View
Color="#1890ff"
accessibilityRole="button"
accessibilityState={
Object {
Expand Down Expand Up @@ -1439,7 +1475,19 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
/>
>
<View
style={
Array [
Object {
"backgroundColor": "transparent",
"marginLeft": 8,
"marginRight": 8,
},
]
}
/>
</View>
</View>
<View
style={
Expand Down Expand Up @@ -1545,6 +1593,7 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
}
>
<View
Color="#d9d9d9"
accessibilityRole="button"
accessibilityState={
Object {
Expand Down Expand Up @@ -1627,7 +1676,19 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
/>
>
<View
style={
Array [
Object {
"backgroundColor": "transparent",
"marginLeft": 8,
"marginRight": 8,
},
]
}
/>
</View>
</View>
<View
style={
Expand Down Expand Up @@ -1733,6 +1794,7 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
}
>
<View
Color="#d9d9d9"
accessibilityRole="button"
accessibilityState={
Object {
Expand Down Expand Up @@ -1819,7 +1881,22 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
/>
>
<View
style={
Array [
Object {
"backgroundColor": "transparent",
"marginLeft": 8,
"marginRight": 8,
},
Object {
"color": "#bbbbbb",
},
]
}
/>
</View>
</View>
<View
style={
Expand Down Expand Up @@ -1975,6 +2052,7 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
}
>
<View
Color="#1890ff"
accessibilityRole="button"
accessibilityState={
Object {
Expand Down Expand Up @@ -2064,7 +2142,22 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
/>
>
<View
style={
Array [
Object {
"backgroundColor": "transparent",
"marginLeft": 8,
"marginRight": 8,
},
Object {
"color": "#bbbbbb",
},
]
}
/>
</View>
</View>
</View>
</View>
Expand Down Expand Up @@ -2175,6 +2268,7 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
}
>
<View
Color="#d9d9d9"
accessibilityRole="button"
accessibilityState={
Object {
Expand Down Expand Up @@ -2250,7 +2344,19 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
/>
>
<View
style={
Array [
Object {
"backgroundColor": "transparent",
"marginLeft": 8,
"marginRight": 8,
},
]
}
/>
</View>
</View>
<View
style={
Expand Down Expand Up @@ -2369,6 +2475,7 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
}
>
<View
Color="#1890ff"
accessibilityRole="button"
accessibilityState={
Object {
Expand Down Expand Up @@ -2454,7 +2561,19 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
/>
>
<View
style={
Array [
Object {
"backgroundColor": "transparent",
"marginLeft": 8,
"marginRight": 8,
},
]
}
/>
</View>
</View>
<View
style={
Expand Down Expand Up @@ -2562,6 +2681,7 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
}
>
<View
Color="#d9d9d9"
accessibilityRole="button"
accessibilityState={
Object {
Expand Down Expand Up @@ -2644,7 +2764,19 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
/>
>
<View
style={
Array [
Object {
"backgroundColor": "transparent",
"marginLeft": 8,
"marginRight": 8,
},
]
}
/>
</View>
</View>
<View
style={
Expand Down Expand Up @@ -2752,6 +2884,7 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
}
>
<View
Color="#1890ff"
accessibilityRole="button"
accessibilityState={
Object {
Expand Down Expand Up @@ -2837,7 +2970,19 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = `
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
/>
>
<View
style={
Array [
Object {
"backgroundColor": "transparent",
"marginLeft": 8,
"marginRight": 8,
},
]
}
/>
</View>
</View>
<View
style={
Expand Down
Loading

0 comments on commit ad102b9

Please sign in to comment.