redbadger/pride-london-app

View on GitHub
src/components/__snapshots__/SectionHeader.test.js.snap

Summary

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

exports[`renders correctly 1`] = `
<ContentPadding
  padding={Object {}}
  style={
    Array [
      Object {
        "alignItems": "center",
        "backgroundColor": "#f3f3f3",
        "flexDirection": "row",
        "minHeight": 40,
      },
      Object {
        "borderWidth": 0,
        "elevation": 3,
        "marginBottom": 6,
        "shadowColor": "rgba(0, 0, 0, 0.14)",
        "shadowOffset": Object {
          "height": 1,
          "width": 0,
        },
        "shadowOpacity": 1,
        "shadowRadius": 3,
      },
    ]
  }
>
  <Text
    accessibilityTraits={
      Array [
        "header",
      ]
    }
    accessible={true}
    color="lightNavyBlueColor"
    markdown={false}
    markdownStyle={Object {}}
    type="h2"
  >
    Section Header
  </Text>
  <View />
</ContentPadding>
`;

exports[`renders correctly with badge text 1`] = `
<ContentPadding
  padding={Object {}}
  style={
    Array [
      Object {
        "alignItems": "center",
        "backgroundColor": "#f3f3f3",
        "flexDirection": "row",
        "minHeight": 40,
      },
      Object {
        "borderWidth": 0,
        "elevation": 3,
        "marginBottom": 6,
        "shadowColor": "rgba(0, 0, 0, 0.14)",
        "shadowOffset": Object {
          "height": 1,
          "width": 0,
        },
        "shadowOpacity": 1,
        "shadowRadius": 3,
      },
    ]
  }
>
  <Text
    accessibilityTraits={
      Array [
        "header",
      ]
    }
    accessible={true}
    color="lightNavyBlueColor"
    markdown={false}
    markdownStyle={Object {}}
    type="h2"
  >
    Section Header
  </Text>
  <View
    style={
      Object {
        "marginLeft": 6,
      }
    }
  >
    <NumberBadge
      value={2}
    />
  </View>
</ContentPadding>
`;

exports[`renders correctly without shadow 1`] = `
<ContentPadding
  padding={Object {}}
  style={
    Object {
      "alignItems": "center",
      "backgroundColor": "#f3f3f3",
      "flexDirection": "row",
      "minHeight": 40,
    }
  }
>
  <Text
    accessibilityTraits={
      Array [
        "header",
      ]
    }
    accessible={true}
    color="lightNavyBlueColor"
    markdown={false}
    markdownStyle={Object {}}
    type="h2"
  >
    Section Header
  </Text>
  <View />
</ContentPadding>
`;