Skip to content

Commit 651ce56

Browse files
committed
fix: tests
1 parent f1c9f29 commit 651ce56

3 files changed

Lines changed: 242 additions & 348 deletions

File tree

package/src/components/MessageInput/__tests__/__snapshots__/AttachButton.test.js.snap

Lines changed: 30 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -798,20 +798,11 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
798798
>
799799
<View
800800
style={
801-
[
802-
{
803-
"height": 0,
804-
"opacity": 0,
805-
"width": 0,
806-
},
807-
{
808-
"transform": [
809-
{
810-
"scale": 0,
811-
},
812-
],
813-
},
814-
]
801+
{
802+
"height": 0,
803+
"opacity": 0,
804+
"width": 0,
805+
}
815806
}
816807
testID="message-overlay-top"
817808
>
@@ -852,20 +843,11 @@ exports[`AttachButton should call handleAttachButtonPress when the button is cli
852843
</View>
853844
<View
854845
style={
855-
[
856-
{
857-
"height": 0,
858-
"opacity": 0,
859-
"width": 0,
860-
},
861-
{
862-
"transform": [
863-
{
864-
"scale": 0,
865-
},
866-
],
867-
},
868-
]
846+
{
847+
"height": 0,
848+
"opacity": 0,
849+
"width": 0,
850+
}
869851
}
870852
testID="message-overlay-bottom"
871853
>
@@ -1685,20 +1667,11 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
16851667
>
16861668
<View
16871669
style={
1688-
[
1689-
{
1690-
"height": 0,
1691-
"opacity": 0,
1692-
"width": 0,
1693-
},
1694-
{
1695-
"transform": [
1696-
{
1697-
"scale": 0,
1698-
},
1699-
],
1700-
},
1701-
]
1670+
{
1671+
"height": 0,
1672+
"opacity": 0,
1673+
"width": 0,
1674+
}
17021675
}
17031676
testID="message-overlay-top"
17041677
>
@@ -1739,20 +1712,11 @@ exports[`AttachButton should render a enabled AttachButton 1`] = `
17391712
</View>
17401713
<View
17411714
style={
1742-
[
1743-
{
1744-
"height": 0,
1745-
"opacity": 0,
1746-
"width": 0,
1747-
},
1748-
{
1749-
"transform": [
1750-
{
1751-
"scale": 0,
1752-
},
1753-
],
1754-
},
1755-
]
1715+
{
1716+
"height": 0,
1717+
"opacity": 0,
1718+
"width": 0,
1719+
}
17561720
}
17571721
testID="message-overlay-bottom"
17581722
>
@@ -2572,20 +2536,11 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
25722536
>
25732537
<View
25742538
style={
2575-
[
2576-
{
2577-
"height": 0,
2578-
"opacity": 0,
2579-
"width": 0,
2580-
},
2581-
{
2582-
"transform": [
2583-
{
2584-
"scale": 0,
2585-
},
2586-
],
2587-
},
2588-
]
2539+
{
2540+
"height": 0,
2541+
"opacity": 0,
2542+
"width": 0,
2543+
}
25892544
}
25902545
testID="message-overlay-top"
25912546
>
@@ -2626,20 +2581,11 @@ exports[`AttachButton should render an disabled AttachButton 1`] = `
26262581
</View>
26272582
<View
26282583
style={
2629-
[
2630-
{
2631-
"height": 0,
2632-
"opacity": 0,
2633-
"width": 0,
2634-
},
2635-
{
2636-
"transform": [
2637-
{
2638-
"scale": 0,
2639-
},
2640-
],
2641-
},
2642-
]
2584+
{
2585+
"height": 0,
2586+
"opacity": 0,
2587+
"width": 0,
2588+
}
26432589
}
26442590
testID="message-overlay-bottom"
26452591
>

package/src/components/MessageInput/__tests__/__snapshots__/SendButton.test.js.snap

Lines changed: 20 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -787,20 +787,11 @@ exports[`SendButton should render a SendButton 1`] = `
787787
>
788788
<View
789789
style={
790-
[
791-
{
792-
"height": 0,
793-
"opacity": 0,
794-
"width": 0,
795-
},
796-
{
797-
"transform": [
798-
{
799-
"scale": 0,
800-
},
801-
],
802-
},
803-
]
790+
{
791+
"height": 0,
792+
"opacity": 0,
793+
"width": 0,
794+
}
804795
}
805796
testID="message-overlay-top"
806797
>
@@ -841,20 +832,11 @@ exports[`SendButton should render a SendButton 1`] = `
841832
</View>
842833
<View
843834
style={
844-
[
845-
{
846-
"height": 0,
847-
"opacity": 0,
848-
"width": 0,
849-
},
850-
{
851-
"transform": [
852-
{
853-
"scale": 0,
854-
},
855-
],
856-
},
857-
]
835+
{
836+
"height": 0,
837+
"opacity": 0,
838+
"width": 0,
839+
}
858840
}
859841
testID="message-overlay-bottom"
860842
>
@@ -1663,20 +1645,11 @@ exports[`SendButton should render a disabled SendButton 1`] = `
16631645
>
16641646
<View
16651647
style={
1666-
[
1667-
{
1668-
"height": 0,
1669-
"opacity": 0,
1670-
"width": 0,
1671-
},
1672-
{
1673-
"transform": [
1674-
{
1675-
"scale": 0,
1676-
},
1677-
],
1678-
},
1679-
]
1648+
{
1649+
"height": 0,
1650+
"opacity": 0,
1651+
"width": 0,
1652+
}
16801653
}
16811654
testID="message-overlay-top"
16821655
>
@@ -1717,20 +1690,11 @@ exports[`SendButton should render a disabled SendButton 1`] = `
17171690
</View>
17181691
<View
17191692
style={
1720-
[
1721-
{
1722-
"height": 0,
1723-
"opacity": 0,
1724-
"width": 0,
1725-
},
1726-
{
1727-
"transform": [
1728-
{
1729-
"scale": 0,
1730-
},
1731-
],
1732-
},
1733-
]
1693+
{
1694+
"height": 0,
1695+
"opacity": 0,
1696+
"width": 0,
1697+
}
17341698
}
17351699
testID="message-overlay-bottom"
17361700
>

0 commit comments

Comments
 (0)