Skip to content

Commit d7af6ba

Browse files
committed
fix: tests
1 parent a49bdf6 commit d7af6ba

File tree

1 file changed

+149
-127
lines changed

1 file changed

+149
-127
lines changed

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

Lines changed: 149 additions & 127 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,41 +1986,158 @@ exports[`Thread should match thread snapshot 1`] = `
19861986
]
19871987
}
19881988
>
1989-
<TextInput
1990-
autoFocus={true}
1991-
editable={true}
1992-
layout={BaseAnimationMock {}}
1993-
maxLength={5000}
1994-
multiline={true}
1995-
onChangeText={[Function]}
1996-
onSelectionChange={[Function]}
1997-
placeholder="Send a message"
1998-
placeholderTextColor="#687385"
1989+
<View
19991990
style={
2000-
[
2001-
{
2002-
"color": "#1a1b25",
2003-
"flex": 1,
2004-
"fontSize": 16,
2005-
"includeFontPadding": false,
2006-
"lineHeight": 20,
2007-
"paddingLeft": 16,
2008-
"paddingVertical": 12,
2009-
"textAlignVertical": "center",
2010-
},
2011-
{
2012-
"maxHeight": 114,
2013-
"paddingLeft": 16,
2014-
"paddingRight": 8,
2015-
"textAlign": "left",
2016-
},
2017-
{},
2018-
]
1991+
{
1992+
"flex": 1,
1993+
}
20191994
}
2020-
testID="auto-complete-text-input"
2021-
value=""
2022-
/>
1995+
>
1996+
<View
1997+
style={
1998+
{
1999+
"flexDirection": "row",
2000+
}
2001+
}
2002+
>
2003+
<TextInput
2004+
autoFocus={false}
2005+
editable={true}
2006+
layout={BaseAnimationMock {}}
2007+
maxLength={5000}
2008+
multiline={true}
2009+
onChangeText={[Function]}
2010+
onSelectionChange={[Function]}
2011+
placeholder="Send a message"
2012+
placeholderTextColor="#687385"
2013+
style={
2014+
[
2015+
{
2016+
"alignSelf": "center",
2017+
"color": "#1a1b25",
2018+
"flex": 1,
2019+
"fontSize": 16,
2020+
"includeFontPadding": false,
2021+
"lineHeight": 20,
2022+
"paddingLeft": 16,
2023+
"paddingVertical": 12,
2024+
"textAlignVertical": "center",
2025+
},
2026+
{
2027+
"maxHeight": 114,
2028+
"paddingLeft": 16,
2029+
"paddingRight": 8,
2030+
"textAlign": "left",
2031+
},
2032+
{},
2033+
]
2034+
}
2035+
testID="auto-complete-text-input"
2036+
value=""
2037+
/>
2038+
</View>
2039+
<View
2040+
layout={BaseAnimationMock {}}
2041+
style={
2042+
[
2043+
{
2044+
"flexDirection": "row",
2045+
"paddingBottom": 12,
2046+
"paddingLeft": 12,
2047+
},
2048+
{},
2049+
]
2050+
}
2051+
testID="show-thread-message-in-channel-button"
2052+
>
2053+
<View
2054+
accessibilityState={
2055+
{
2056+
"busy": undefined,
2057+
"checked": undefined,
2058+
"disabled": undefined,
2059+
"expanded": undefined,
2060+
"selected": undefined,
2061+
}
2062+
}
2063+
accessibilityValue={
2064+
{
2065+
"max": undefined,
2066+
"min": undefined,
2067+
"now": undefined,
2068+
"text": undefined,
2069+
}
2070+
}
2071+
accessible={true}
2072+
collapsable={false}
2073+
focusable={true}
2074+
onBlur={[Function]}
2075+
onClick={[Function]}
2076+
onFocus={[Function]}
2077+
onResponderGrant={[Function]}
2078+
onResponderMove={[Function]}
2079+
onResponderRelease={[Function]}
2080+
onResponderTerminate={[Function]}
2081+
onResponderTerminationRequest={[Function]}
2082+
onStartShouldSetResponder={[Function]}
2083+
style={
2084+
{
2085+
"opacity": 1,
2086+
}
2087+
}
2088+
>
2089+
<View
2090+
style={
2091+
[
2092+
{
2093+
"alignItems": "center",
2094+
"flexDirection": "row",
2095+
},
2096+
{},
2097+
]
2098+
}
2099+
>
2100+
<View
2101+
style={
2102+
[
2103+
{
2104+
"alignItems": "center",
2105+
"borderRadius": 6,
2106+
"borderWidth": 1,
2107+
"height": 20,
2108+
"justifyContent": "center",
2109+
"width": 20,
2110+
},
2111+
{
2112+
"borderColor": "#7A7A7A",
2113+
},
2114+
]
2115+
}
2116+
/>
2117+
<Text
2118+
style={
2119+
[
2120+
{
2121+
"color": "#687385",
2122+
"fontSize": 13,
2123+
"lineHeight": 16,
2124+
"paddingLeft": 12,
2125+
},
2126+
{
2127+
"color": "#7A7A7A",
2128+
},
2129+
{},
2130+
]
2131+
}
2132+
>
2133+
Also send to channel
2134+
</Text>
2135+
</View>
2136+
</View>
2137+
</View>
2138+
</View>
20232139
<View
2140+
layout={BaseAnimationMock {}}
20242141
style={
20252142
[
20262143
{
@@ -2180,101 +2297,6 @@ exports[`Thread should match thread snapshot 1`] = `
21802297
</View>
21812298
</View>
21822299
</View>
2183-
<View
2184-
style={
2185-
[
2186-
{
2187-
"flexDirection": "row",
2188-
"marginHorizontal": 2,
2189-
"marginTop": 8,
2190-
},
2191-
{},
2192-
]
2193-
}
2194-
testID="show-thread-message-in-channel-button"
2195-
>
2196-
<View
2197-
accessibilityState={
2198-
{
2199-
"busy": undefined,
2200-
"checked": undefined,
2201-
"disabled": undefined,
2202-
"expanded": undefined,
2203-
"selected": undefined,
2204-
}
2205-
}
2206-
accessibilityValue={
2207-
{
2208-
"max": undefined,
2209-
"min": undefined,
2210-
"now": undefined,
2211-
"text": undefined,
2212-
}
2213-
}
2214-
accessible={true}
2215-
collapsable={false}
2216-
focusable={true}
2217-
onBlur={[Function]}
2218-
onClick={[Function]}
2219-
onFocus={[Function]}
2220-
onResponderGrant={[Function]}
2221-
onResponderMove={[Function]}
2222-
onResponderRelease={[Function]}
2223-
onResponderTerminate={[Function]}
2224-
onResponderTerminationRequest={[Function]}
2225-
onStartShouldSetResponder={[Function]}
2226-
style={
2227-
{
2228-
"opacity": 1,
2229-
}
2230-
}
2231-
>
2232-
<View
2233-
style={
2234-
[
2235-
{
2236-
"flexDirection": "row",
2237-
},
2238-
{},
2239-
]
2240-
}
2241-
>
2242-
<View
2243-
style={
2244-
[
2245-
{
2246-
"alignItems": "center",
2247-
"borderRadius": 3,
2248-
"borderWidth": 2,
2249-
"height": 16,
2250-
"justifyContent": "center",
2251-
"width": 16,
2252-
},
2253-
{
2254-
"borderColor": "#7A7A7A",
2255-
},
2256-
]
2257-
}
2258-
/>
2259-
<Text
2260-
style={
2261-
[
2262-
{
2263-
"fontSize": 13,
2264-
"marginLeft": 12,
2265-
},
2266-
{
2267-
"color": "#7A7A7A",
2268-
},
2269-
{},
2270-
]
2271-
}
2272-
>
2273-
Also send to channel
2274-
</Text>
2275-
</View>
2276-
</View>
2277-
</View>
22782300
</View>
22792301
<View
22802302
style={

0 commit comments

Comments
 (0)