Skip to content

Commit

Permalink
update snapshots and naming in reference rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
axe312ger committed May 12, 2021
1 parent e05204f commit d560a17
Show file tree
Hide file tree
Showing 7 changed files with 305 additions and 305 deletions.
22 changes: 11 additions & 11 deletions e2e-tests/contentful/snapshots.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const ContentfulContentTypeContentReference = ({ one, many, title }) => {
const references = [one, ...(many || [])].filter(Boolean)
return (
<p data-cy-id="reference">
[ContentfulReference] {title}: [
[ContentfulContentTypeContentReference] {title}: [
{references.map(ref => ref.title).join(", ")}]
</p>
)
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/contentful/src/components/references/location.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import React from "react"

export const ContentfulContentTypeLocation = ({ location }) => (
<p data-cy-id="location">
[ContentfulLocation] Lat: {location.lat}, Long: {location.lon}
[ContentfulContentTypeLocation] Lat: {location.lat}, Long: {location.lon}
</p>
)
2 changes: 1 addition & 1 deletion e2e-tests/contentful/src/components/references/number.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"

export const ContentfulContentTypeNumber = ({ integer }) => (
<p data-cy-id="integer">[ContentfulInteger] {integer}</p>
<p data-cy-id="integer">[ContentfulContentTypeNumber] {integer}</p>
)
2 changes: 1 addition & 1 deletion e2e-tests/contentful/src/components/references/text.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"

export const ContentfulContentTypeText = ({ short }) => (
<p data-cy-id="text">[ContentfulText] {short}</p>
<p data-cy-id="text">[ContentfulContentTypeText] {short}</p>
)
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Object {
"internal": Object {
"contentDigest": "2020-06-03T14:22:37.720Z",
"owner": "gatsby-source-contentful",
"type": "ContentfulBlogPost",
"type": "ContentfulContentTypeBlogPost",
},
"parent": "Blog Post",
"publishDate": "2020-04-01T00:00+02:00",
Expand Down Expand Up @@ -49,7 +49,7 @@ Object {
"internal": Object {
"contentDigest": "2020-06-03T14:17:31.246Z",
"owner": "gatsby-source-contentful",
"type": "ContentfulPerson",
"type": "ContentfulContentTypePerson",
},
"name": "John Doe",
"parent": "Person",
Expand Down Expand Up @@ -82,7 +82,7 @@ Object {
"internal": Object {
"contentDigest": "2020-06-03T14:22:37.720Z",
"owner": "gatsby-source-contentful",
"type": "ContentfulBlogPost",
"type": "ContentfulContentTypeBlogPost",
},
"parent": "Blog Post",
"publishDate": "2020-04-01T00:00+02:00",
Expand Down Expand Up @@ -120,7 +120,7 @@ Object {
"internal": Object {
"contentDigest": "2020-06-03T14:17:31.246Z",
"owner": "gatsby-source-contentful",
"type": "ContentfulPerson",
"type": "ContentfulContentTypePerson",
},
"name": "John Doe",
"parent": "Person",
Expand Down Expand Up @@ -159,7 +159,7 @@ Object {
"internal": Object {
"contentDigest": "2020-06-03T14:17:31.246Z",
"owner": "gatsby-source-contentful",
"type": "ContentfulPerson",
"type": "ContentfulContentTypePerson",
},
"name": "John Doe",
"parent": "Person",
Expand Down Expand Up @@ -198,7 +198,7 @@ Object {
"internal": Object {
"contentDigest": "2020-06-03T14:17:31.246Z",
"owner": "gatsby-source-contentful",
"type": "ContentfulPerson",
"type": "ContentfulContentTypePerson",
},
"name": "John Doe",
"parent": "Person",
Expand Down Expand Up @@ -231,7 +231,7 @@ Object {
"internal": Object {
"contentDigest": "2020-06-03T14:27:24.359Z",
"owner": "gatsby-source-contentful",
"type": "ContentfulBlogPost",
"type": "ContentfulContentTypeBlogPost",
},
"parent": "Blog Post",
"publishDate": "2020-05-15T00:00+02:00",
Expand Down Expand Up @@ -269,7 +269,7 @@ Object {
"internal": Object {
"contentDigest": "2020-06-03T14:17:31.246Z",
"owner": "gatsby-source-contentful",
"type": "ContentfulPerson",
"type": "ContentfulContentTypePerson",
},
"name": "John Doe",
"parent": "Person",
Expand Down Expand Up @@ -302,7 +302,7 @@ Object {
"internal": Object {
"contentDigest": "2020-06-03T14:27:24.359Z",
"owner": "gatsby-source-contentful",
"type": "ContentfulBlogPost",
"type": "ContentfulContentTypeBlogPost",
},
"parent": "Blog Post",
"publishDate": "2020-05-15T00:00+02:00",
Expand Down Expand Up @@ -340,7 +340,7 @@ Object {
"internal": Object {
"contentDigest": "2020-06-03T14:17:31.246Z",
"owner": "gatsby-source-contentful",
"type": "ContentfulPerson",
"type": "ContentfulContentTypePerson",
},
"name": "John Doe",
"parent": "Person",
Expand Down
Loading

0 comments on commit d560a17

Please sign in to comment.