Skip to content

Commit 400c06b

Browse files
committed
tests: upd snapshots
1 parent 389ac46 commit 400c06b

File tree

5 files changed

+602
-133
lines changed

5 files changed

+602
-133
lines changed

src/__tests__/__snapshots__/Actions.test.tsx.snap

Lines changed: 31 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,39 @@
22

33
exports[`should render <Actions /> and compare with snapshot 1`] = `
44
<View
5-
accessibilityState={
5+
style={
66
{
7-
"busy": undefined,
8-
"checked": undefined,
9-
"disabled": false,
10-
"expanded": undefined,
11-
"selected": undefined,
7+
"alignItems": "flex-end",
128
}
139
}
14-
accessibilityValue={
15-
{
16-
"max": undefined,
17-
"min": undefined,
18-
"now": undefined,
19-
"text": undefined,
10+
>
11+
<View
12+
accessibilityState={
13+
{
14+
"busy": undefined,
15+
"checked": undefined,
16+
"disabled": false,
17+
"expanded": undefined,
18+
"selected": undefined,
19+
}
2020
}
21-
}
22-
accessible={true}
23-
focusable={true}
24-
onClick={[Function]}
25-
onResponderGrant={[Function]}
26-
onResponderMove={[Function]}
27-
onResponderRelease={[Function]}
28-
onResponderTerminate={[Function]}
29-
onResponderTerminationRequest={[Function]}
30-
onStartShouldSetResponder={[Function]}
31-
/>
21+
accessibilityValue={
22+
{
23+
"max": undefined,
24+
"min": undefined,
25+
"now": undefined,
26+
"text": undefined,
27+
}
28+
}
29+
accessible={true}
30+
focusable={true}
31+
onClick={[Function]}
32+
onResponderGrant={[Function]}
33+
onResponderMove={[Function]}
34+
onResponderRelease={[Function]}
35+
onResponderTerminate={[Function]}
36+
onResponderTerminationRequest={[Function]}
37+
onStartShouldSetResponder={[Function]}
38+
/>
39+
</View>
3240
`;
Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`should render <Composer /> and compare with snapshot 1`] = `
4-
<TextInput
5-
accessibilityLabel="Type a message..."
6-
accessible={true}
7-
enablesReturnKeyAutomatically={true}
8-
keyboardAppearance="default"
9-
multiline={true}
10-
onContentSizeChange={[Function]}
11-
placeholder="Type a message..."
12-
placeholderTextColor="#b2b2b2"
4+
<View
135
style={
14-
[
15-
{
16-
"flex": 1,
17-
},
18-
{
19-
"fontSize": 16,
20-
"lineHeight": 22,
21-
"marginBottom": 5,
22-
"marginLeft": 10,
23-
"marginTop": 6,
24-
},
25-
undefined,
26-
undefined,
27-
{
28-
"height": 33,
29-
},
30-
]
6+
{
7+
"flex": 1,
8+
}
319
}
32-
testID="Type a message..."
33-
underlineColorAndroid="transparent"
34-
value=""
35-
/>
10+
>
11+
<TextInput
12+
accessibilityLabel="Type a message..."
13+
accessible={true}
14+
enablesReturnKeyAutomatically={true}
15+
keyboardAppearance="default"
16+
multiline={true}
17+
placeholder="Type a message..."
18+
placeholderTextColor="#b2b2b2"
19+
style={
20+
[
21+
{
22+
"fontSize": 16,
23+
"lineHeight": 22,
24+
"paddingBottom": 10,
25+
"paddingTop": 8,
26+
},
27+
undefined,
28+
]
29+
}
30+
testID="Type a message..."
31+
underlineColorAndroid="transparent"
32+
value=""
33+
/>
34+
</View>
3635
`;

src/__tests__/__snapshots__/InputToolbar.test.tsx.snap

Lines changed: 102 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,59 +4,130 @@ exports[`should render <InputToolbar /> and compare with snapshot 1`] = `
44
<View
55
style={
66
[
7-
{
8-
"backgroundColor": "#fff",
9-
"borderTopColor": "#b2b2b2",
10-
"borderTopWidth": 0.5,
11-
},
12-
false,
7+
[
8+
{
9+
"backgroundColor": "#fff",
10+
"borderTopColor": "#b2b2b2",
11+
"borderTopWidth": 0.5,
12+
},
13+
undefined,
14+
],
1315
undefined,
1416
]
1517
}
1618
>
1719
<View
1820
style={
1921
[
20-
{
21-
"alignItems": "flex-end",
22-
"flexDirection": "row",
23-
},
22+
[
23+
{
24+
"alignItems": "flex-end",
25+
"flexDirection": "row",
26+
},
27+
undefined,
28+
],
2429
undefined,
2530
]
2631
}
2732
>
28-
<TextInput
29-
accessibilityLabel="Type a message..."
30-
accessible={true}
31-
enablesReturnKeyAutomatically={true}
32-
keyboardAppearance="default"
33-
multiline={true}
34-
onContentSizeChange={[Function]}
35-
placeholder="Type a message..."
36-
placeholderTextColor="#b2b2b2"
33+
<View
3734
style={
35+
{
36+
"flex": 1,
37+
}
38+
}
39+
>
40+
<TextInput
41+
accessibilityLabel="Type a message..."
42+
accessible={true}
43+
enablesReturnKeyAutomatically={true}
44+
keyboardAppearance="default"
45+
multiline={true}
46+
placeholder="Type a message..."
47+
placeholderTextColor="#b2b2b2"
48+
style={
49+
[
50+
{
51+
"fontSize": 16,
52+
"lineHeight": 22,
53+
"paddingBottom": 10,
54+
"paddingTop": 8,
55+
},
56+
undefined,
57+
]
58+
}
59+
testID="Type a message..."
60+
underlineColorAndroid="transparent"
61+
value=""
62+
/>
63+
</View>
64+
<View
65+
collapsable={false}
66+
jestAnimatedProps={
67+
{
68+
"value": {},
69+
}
70+
}
71+
jestAnimatedStyle={
72+
{
73+
"value": {
74+
"opacity": 0,
75+
},
76+
}
77+
}
78+
jestInlineStyle={
3879
[
3980
{
40-
"flex": 1,
81+
"justifyContent": "flex-end",
4182
},
83+
undefined,
84+
]
85+
}
86+
pointerEvents="none"
87+
style={
88+
[
4289
{
43-
"fontSize": 16,
44-
"lineHeight": 22,
45-
"marginBottom": 5,
46-
"marginLeft": 10,
47-
"marginTop": 6,
90+
"justifyContent": "flex-end",
4891
},
4992
undefined,
50-
undefined,
5193
{
52-
"height": 33,
94+
"opacity": 0,
5395
},
5496
]
5597
}
56-
testID="Type a message..."
57-
underlineColorAndroid="transparent"
58-
value=""
59-
/>
98+
>
99+
<View
100+
accessibilityLabel="send"
101+
accessibilityRole="button"
102+
accessibilityState={
103+
{
104+
"busy": undefined,
105+
"checked": undefined,
106+
"disabled": false,
107+
"expanded": undefined,
108+
"selected": undefined,
109+
}
110+
}
111+
accessibilityValue={
112+
{
113+
"max": undefined,
114+
"min": undefined,
115+
"now": undefined,
116+
"text": undefined,
117+
}
118+
}
119+
accessible={true}
120+
focusable={true}
121+
onClick={[Function]}
122+
onResponderGrant={[Function]}
123+
onResponderMove={[Function]}
124+
onResponderRelease={[Function]}
125+
onResponderTerminate={[Function]}
126+
onResponderTerminationRequest={[Function]}
127+
onStartShouldSetResponder={[Function]}
128+
testID="GC_SEND_TOUCHABLE"
129+
/>
130+
</View>
60131
</View>
61132
</View>
62133
`;

0 commit comments

Comments
 (0)