DeFiCh/wallet

View on GitHub
mobile-app/app/components/__snapshots__/TransactionResultsRow.test.tsx.snap

Summary

Maintainability
Test Coverage
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Transaction Results Row should match snapshot 1`] = `
[
  <Text
    style={
      [
        {
          "fontFamily": "RegularFont",
          "fontSize": 16,
          "fontWeight": "400",
          "lineHeight": 24,
        },
        [
          {
            "color": "rgba(115, 115, 115, 1)",
            "fontFamily": "MediumFont",
            "fontSize": 12,
            "fontWeight": "500",
            "lineHeight": 16,
            "paddingBottom": 8,
            "paddingLeft": 16,
            "paddingRight": 16,
            "paddingTop": 24,
          },
          {
            "backgroundColor": "rgba(250, 250, 250, 1)",
            "color": "rgba(115, 115, 115, 1)",
          },
        ],
      ]
    }
    testID="title_transaction_results"
    text="TRANSACTION RESULTS"
  >
    TRANSACTION RESULTS
  </Text>,
  <View
    style={
      [
        {
          "alignItems": "flex-start",
          "flexDirection": "row",
          "paddingBottom": 16,
          "paddingLeft": 16,
          "paddingRight": 16,
          "paddingTop": 16,
          "width": "100%",
        },
        {
          "backgroundColor": "rgba(255, 255, 255, 1)",
          "borderBottomColor": "rgba(229, 229, 229, 1)",
          "borderBottomWidth": 1,
          "borderLeftColor": "rgba(229, 229, 229, 1)",
          "borderRightColor": "rgba(229, 229, 229, 1)",
          "borderTopColor": "rgba(229, 229, 229, 1)",
        },
      ]
    }
  >
    <View
      style={
        {
          "width": "50%",
        }
      }
    >
      <View
        style={
          {
            "alignItems": "flex-end",
            "flexDirection": "row",
            "justifyContent": "flex-start",
          }
        }
      >
        <Text
          style={
            [
              {
                "fontFamily": "RegularFont",
                "fontSize": 16,
                "fontWeight": "400",
                "lineHeight": 24,
              },
              [
                [
                  {
                    "fontSize": 14,
                    "lineHeight": 20,
                  },
                  undefined,
                ],
                {
                  "color": "rgba(0, 0, 0, 1)",
                },
              ],
            ]
          }
          testID="resulting_DFI_label"
        >
          Resulting DFI
        </Text>
      </View>
    </View>
    <View
      style={
        {
          "flexBasis": "0%",
          "flexGrow": 1,
          "flexShrink": 1,
        }
      }
    >
      <View>
        <View
          style={
            {
              "alignItems": "center",
              "display": "flex",
              "flexDirection": "row",
              "flexWrap": "wrap",
              "justifyContent": "flex-end",
            }
          }
        >
          <Text
            style={
              [
                {
                  "fontSize": 14,
                  "lineHeight": 20,
                  "textAlign": "right",
                },
                undefined,
                undefined,
              ]
            }
          >
            <Text
              style={
                [
                  {
                    "fontFamily": "RegularFont",
                    "fontSize": 16,
                    "fontWeight": "400",
                    "lineHeight": 24,
                  },
                  [
                    [
                      {
                        "fontSize": 14,
                        "lineHeight": 20,
                        "textAlign": "right",
                      },
                      undefined,
                      undefined,
                    ],
                    {
                      "color": "rgba(115, 115, 115, 1)",
                    },
                  ],
                ]
              }
              testID="resulting_DFI"
            >
              0.00000001
            </Text>
            <Text>
               
            </Text>
            <Text
              style={
                [
                  {
                    "fontFamily": "RegularFont",
                    "fontSize": 16,
                    "fontWeight": "400",
                    "lineHeight": 24,
                  },
                  [
                    [
                      {
                        "fontSize": 14,
                        "lineHeight": 20,
                        "marginLeft": 4,
                      },
                      undefined,
                      undefined,
                    ],
                    {
                      "color": "rgba(115, 115, 115, 1)",
                    },
                  ],
                ]
              }
              testID="resulting_DFI_suffix"
            >
              DFI
            </Text>
          </Text>
        </View>
      </View>
      <View
        style={
          {
            "alignItems": "center",
            "display": "flex",
            "flexDirection": "row",
            "flexWrap": "wrap",
            "justifyContent": "flex-end",
          }
        }
      />
    </View>
  </View>,
  <View
    style={
      [
        {
          "alignItems": "flex-start",
          "flexDirection": "row",
          "paddingBottom": 16,
          "paddingLeft": 16,
          "paddingRight": 16,
          "paddingTop": 16,
          "width": "100%",
        },
        {
          "backgroundColor": "rgba(255, 255, 255, 1)",
          "borderBottomColor": "rgba(229, 229, 229, 1)",
          "borderBottomWidth": 1,
          "borderLeftColor": "rgba(229, 229, 229, 1)",
          "borderRightColor": "rgba(229, 229, 229, 1)",
          "borderTopColor": "rgba(229, 229, 229, 1)",
        },
      ]
    }
  >
    <View
      style={
        {
          "width": "50%",
        }
      }
    >
      <View
        style={
          {
            "alignItems": "flex-end",
            "flexDirection": "row",
            "justifyContent": "flex-start",
          }
        }
      >
        <Text
          style={
            [
              {
                "fontFamily": "RegularFont",
                "fontSize": 16,
                "fontWeight": "400",
                "lineHeight": 24,
              },
              [
                [
                  {
                    "fontSize": 14,
                    "lineHeight": 20,
                  },
                  undefined,
                ],
                {
                  "color": "rgba(0, 0, 0, 1)",
                },
              ],
            ]
          }
          testID="resulting_dBTC_label"
        >
          Resulting dBTC
        </Text>
      </View>
    </View>
    <View
      style={
        {
          "flexBasis": "0%",
          "flexGrow": 1,
          "flexShrink": 1,
        }
      }
    >
      <View>
        <View
          style={
            {
              "alignItems": "center",
              "display": "flex",
              "flexDirection": "row",
              "flexWrap": "wrap",
              "justifyContent": "flex-end",
            }
          }
        >
          <Text
            style={
              [
                {
                  "fontSize": 14,
                  "lineHeight": 20,
                  "textAlign": "right",
                },
                undefined,
                undefined,
              ]
            }
          >
            <Text
              style={
                [
                  {
                    "fontFamily": "RegularFont",
                    "fontSize": 16,
                    "fontWeight": "400",
                    "lineHeight": 24,
                  },
                  [
                    [
                      {
                        "fontSize": 14,
                        "lineHeight": 20,
                        "textAlign": "right",
                      },
                      undefined,
                      undefined,
                    ],
                    {
                      "color": "rgba(115, 115, 115, 1)",
                    },
                  ],
                ]
              }
              testID="resulting_dBTC"
            >
              0.00000001
            </Text>
            <Text>
               
            </Text>
            <Text
              style={
                [
                  {
                    "fontFamily": "RegularFont",
                    "fontSize": 16,
                    "fontWeight": "400",
                    "lineHeight": 24,
                  },
                  [
                    [
                      {
                        "fontSize": 14,
                        "lineHeight": 20,
                        "marginLeft": 4,
                      },
                      undefined,
                      undefined,
                    ],
                    {
                      "color": "rgba(115, 115, 115, 1)",
                    },
                  ],
                ]
              }
              testID="resulting_dBTC_suffix"
            >
              dBTC
            </Text>
          </Text>
        </View>
      </View>
      <View
        style={
          {
            "alignItems": "center",
            "display": "flex",
            "flexDirection": "row",
            "flexWrap": "wrap",
            "justifyContent": "flex-end",
          }
        }
      />
    </View>
  </View>,
]
`;