teamdigitale/italia-app

View on GitHub
ts/components/services/ContactPreferencesToggles/__test__/__snapshots__/PreferenceToggleRow.test.tsx.snap

Summary

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

exports[`PreferenceToggleRow component should match the snapshot 1`] = `
<View
  style={
    Object {
      "flex": 1,
      "flexDirection": "row",
      "justifyContent": "space-between",
      "paddingVertical": 12,
    }
  }
>
  <View
    style={
      Object {
        "flex": 1,
      }
    }
  >
    <Text
      accessibilityRole="text"
      color="bluegreyDark"
      font="TitilliumWeb"
      fontStyle={
        Object {
          "fontSize": 16,
          "lineHeight": 22,
        }
      }
      style={
        Array [
          Object {
            "fontSize": 16,
            "lineHeight": 22,
          },
          Object {
            "color": "#17324D",
            "fontFamily": "Titillium Web",
            "fontStyle": "normal",
            "fontWeight": "400",
          },
        ]
      }
      testID="preference-toggle-row-label"
      weight="Regular"
      weightColorFactory={[Function]}
    >
      Push Notifications
    </Text>
  </View>
  <RCTSwitch
    accessibilityLabel="Push Notifications"
    accessibilityRole="switch"
    accessibilityState={
      Object {
        "checked": true,
        "disabled": undefined,
      }
    }
    onChange={[Function]}
    onResponderTerminationRequest={[Function]}
    onStartShouldSetResponder={[Function]}
    onTintColor="#0073E6"
    style={
      Array [
        Object {
          "height": 31,
          "width": 51,
        },
        Object {
          "backgroundColor": "#F5F6F7",
          "borderRadius": 16,
        },
      ]
    }
    testID="preference-toggle-row"
    thumbTintColor="#FFFFFF"
    tintColor="#F5F6F7"
    value={true}
  />
</View>
`;