eduardomoroni/mtgx

View on GitHub
__tests__/unit/src/modules/form/components/__snapshots__/numericInputForm.test.js.snap

Summary

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

exports[`<NumericInputForm /> android component should have a snapshot 1`] = `
<View
  style={
    Object {
      "alignItems": "center",
      "borderColor": "rgba(0, 0, 0, 0.4)",
      "borderRadius": 3,
      "borderWidth": 1,
      "flexDirection": "row",
      "height": 40,
      "justifyContent": "space-between",
      "marginBottom": 5,
    }
  }
>
  <Text
    accessible={true}
    allowFontScaling={true}
    disabled={false}
    ellipsizeMode="tail"
    style={
      Object {
        "flex": -1,
        "justifyContent": "flex-start",
        "marginLeft": 5,
      }
    }
  >
    I18n.t(label) &gt;
  </Text>
  <InputPicker
    dropdownItems={
      Array [
        "",
        "<",
        "<=",
        "=",
        ">=",
        "=",
      ]
    }
    onValueChange={[Function]}
    selectedValue=">"
  />
  <TextInput
    keyboardType="numeric"
    maxLength={2}
    onChangeText={[Function]}
    returnKeyType="next"
    style={
      Object {
        "color": "grey",
        "flex": 1,
        "justifyContent": "flex-end",
      }
    }
    underlineColorAndroid="transparent"
  />
</View>
`;

exports[`<NumericInputForm /> iOS component should have a snapshot 1`] = `
<iOS
  input={
    Object {
      "name": "label",
      "onChange": [Function],
      "value": Object {
        "number": 1,
        "operator": ">",
      },
    }
  }
/>
`;