eduardomoroni/mtgx

View on GitHub
__tests__/unit/src/modules/cardSearch/components/__snapshots__/cardSearchScreen.test.js.snap

Summary

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

exports[`<CardSearchScreen /> should have a snapshot 1`] = `
<View
  style={
    Object {
      "flex": 1,
    }
  }
>
  <View
    style={
      Object {
        "marginHorizontal": 10,
        "paddingTop": 5,
      }
    }
  >
    <Field
      component={[Function]}
      name="CARD_NAME"
    />
    <Field
      component={[Function]}
      name="CARD_TEXT"
    />
    <View
      style={
        Object {
          "alignItems": "center",
          "flexDirection": "row",
        }
      }
    >
      <View
        style={
          Object {
            "flex": 1,
            "justifyContent": "flex-start",
            "marginRight": 1.6666666666666667,
          }
        }
      >
        <Field
          component={[Function]}
          dropdownItems={
            Array [
              "type",
            ]
          }
          name="TYPE"
        />
      </View>
      <View
        style={
          Object {
            "flex": 1,
            "justifyContent": "flex-end",
            "marginLeft": 1.6666666666666667,
          }
        }
      >
        <Field
          component={[Function]}
          dropdownItems={
            Array [
              "subType",
            ]
          }
          name="SUB_TYPE"
        />
      </View>
    </View>
    <View
      style={
        Object {
          "alignItems": "center",
          "flexDirection": "row",
        }
      }
    >
      <View
        style={
          Object {
            "flex": 1,
            "justifyContent": "flex-start",
            "marginRight": 1.6666666666666667,
          }
        }
      >
        <Field
          component={[Function]}
          name="POWER"
        />
      </View>
      <View
        style={
          Object {
            "flex": 1,
            "justifyContent": "center",
            "marginLeft": 1.6666666666666667,
          }
        }
      >
        <Field
          component={[Function]}
          name="TOUGHNESS"
        />
      </View>
      <View
        style={
          Object {
            "flex": 1,
            "justifyContent": "flex-end",
            "marginLeft": 1.6666666666666667,
          }
        }
      >
        <Field
          component={[Function]}
          name="CMC"
        />
      </View>
    </View>
    <Field
      component={[Function]}
      name="COLORS"
    />
    <Field
      component={[Function]}
      name="FLAVOR_TEXT"
    />
    <View
      style={
        Object {
          "alignItems": "center",
          "flexDirection": "row",
        }
      }
    >
      <View
        style={
          Object {
            "flex": 1,
            "justifyContent": "flex-start",
            "marginRight": 1.6666666666666667,
          }
        }
      >
        <Field
          component={[Function]}
          name="ARTIST"
        />
      </View>
      <View
        style={
          Object {
            "flex": 1,
            "justifyContent": "flex-end",
            "marginLeft": 1.6666666666666667,
          }
        }
      >
        <Field
          component={[Function]}
          keyboardType="numeric"
          maxLength={3}
          name="COLLECTION_NUMBER"
        />
      </View>
    </View>
    <View
      style={
        Object {
          "alignItems": "center",
          "flexDirection": "row",
        }
      }
    >
      <View
        style={
          Object {
            "flex": 1,
            "justifyContent": "flex-start",
            "marginRight": 1.6666666666666667,
          }
        }
      >
        <ModalToggle
          label="RARITY"
          onPress={[Function]}
        />
      </View>
      <View
        style={
          Object {
            "flex": 1,
            "justifyContent": "center",
            "marginLeft": 1.6666666666666667,
          }
        }
      >
        <ModalToggle
          label="SET"
          onPress={[Function]}
        />
      </View>
      <View
        style={
          Object {
            "flex": 1,
            "justifyContent": "flex-end",
            "marginLeft": 1.6666666666666667,
          }
        }
      >
        <ModalToggle
          label="FORMAT"
          onPress={[Function]}
        />
      </View>
    </View>
    <Field
      component={[Function]}
      name="COLOR_IDENTITY"
    />
  </View>
  <View
    style={
      Object {
        "bottom": 0,
        "left": 0,
        "position": "absolute",
        "right": 0,
      }
    }
  >
    <Button
      activeOpacity={0.8}
      disabled={false}
      disabledStyle={
        Object {
          "opacity": 0.3,
        }
      }
      iconName="ios-search"
      iconPosition="right"
      kind="squared"
      onLongPress={[Function]}
      onPress={[Function]}
      onPressIn={[Function]}
      onPressOut={[Function]}
      type="primary"
      uppercase={true}
    >
      I18n.t(SEARCH)
    </Button>
  </View>
</View>
`;