Skip to content

Commit

Permalink
fix snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
blackdevelopa committed May 15, 2023
1 parent ce9542d commit 5dbe091
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 173 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ exports[`ApproveTransactionHeader should return origin to be null when not prese
resizeMode="contain"
source={
Object {
"testUri": "../../../app/images/sepolia-logo-dark.png",
"uri": "MockImage",
}
}
style={
Expand Down Expand Up @@ -646,9 +646,7 @@ exports[`ApproveTransactionHeader should return origin to be null when not prese
"lineHeight": 22,
}
}
>
Account 1
</Text>
/>
</View>
</View>
<View>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,176 +1,37 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`TransactionReviewDetailsCard should render correctly 1`] = `
<View
style={
<ContextProvider
value={
Object {
"minWidth": "100%",
"paddingBottom": 16,
"paddingHorizontal": 16,
"width": "100%",
"store": Object {
"clearActions": [Function],
"dispatch": [Function],
"getActions": [Function],
"getState": [Function],
"replaceReducer": [Function],
"subscribe": [Function],
},
"subscription": Subscription {
"handleChangeWrapper": [Function],
"listeners": Object {
"notify": [Function],
},
"onStateChange": [Function],
"parentSub": undefined,
"store": Object {
"clearActions": [Function],
"dispatch": [Function],
"getActions": [Function],
"getState": [Function],
"replaceReducer": [Function],
"subscribe": [Function],
},
"unsubscribe": null,
},
}
}
>
<ConnectHeader
title="Transaction Details"
/>
<View
style={
Object {
"borderColor": "#BBC0C5",
"borderRadius": 10,
"borderWidth": 1,
"padding": 16,
}
}
>
<View
style={
Object {
"display": "flex",
"flexDirection": "row",
"flexWrap": "wrap",
"paddingVertical": 4,
}
}
>
<Text
style={
Object {
"color": "#24272A",
"fontFamily": "EuclidCircularB-Regular",
"fontSize": 14,
"fontWeight": "100",
}
}
>
Contract address:
</Text>
<View
style={
Object {
"color": "#24272A",
"flexDirection": "row",
"fontFamily": "EuclidCircularB-Bold",
"fontSize": 14,
"fontWeight": "600",
"marginLeft": "auto",
"textAlign": "right",
}
}
>
<Text
style={
Object {
"color": "#0376C9",
"fontFamily": "EuclidCircularB-Bold",
"fontWeight": "600",
"marginHorizontal": 8,
"maxWidth": 120,
}
}
/>
<Icon
allowFontScaling={false}
color="#0376C9"
name="copy"
onPress={[Function]}
size={16}
style={
Object {
"marginLeft": 1,
"marginTop": 2,
}
}
/>
</View>
</View>
<View
style={
Object {
"display": "flex",
"flexDirection": "row",
"flexWrap": "wrap",
"paddingVertical": 4,
}
}
>
<Text
style={
Object {
"color": "#24272A",
"fontFamily": "EuclidCircularB-Regular",
"fontSize": 14,
"fontWeight": "100",
}
}
>
Approve asset:
</Text>
<Text
style={
Object {
"color": "#24272A",
"flexDirection": "row",
"fontFamily": "EuclidCircularB-Bold",
"fontSize": 14,
"fontWeight": "600",
"marginLeft": "auto",
"textAlign": "right",
}
}
>
undefined (#undefined)
</Text>
</View>
</View>
<View
style={
Object {
"borderColor": "#BBC0C5",
"borderRadius": 10,
"borderWidth": 1,
"marginTop": 20,
"padding": 16,
}
}
>
<TouchableOpacity
style={
Object {
"display": "flex",
"flexDirection": "row",
"flexWrap": "wrap",
}
}
>
<Text
style={
Object {
"color": "#24272A",
"fontFamily": "EuclidCircularB-Bold",
"fontSize": 14,
"fontWeight": "600",
}
}
>
View Data
</Text>
<View
style={
Object {
"marginLeft": "auto",
}
}
>
<Icon
allowFontScaling={false}
color="#24272A"
name="ios-arrow-down"
size={16}
/>
</View>
</TouchableOpacity>
</View>
</View>
<TransactionReviewDetailsCard />
</ContextProvider>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ describe('TransactionReviewDetailsCard', () => {
<TransactionReviewDetailsCard />
</Provider>,
);
expect(wrapper.dive()).toMatchSnapshot();
expect(wrapper).toMatchSnapshot();
});
});

0 comments on commit 5dbe091

Please sign in to comment.