Skip to content

Commit

Permalink
fix: make unit tests pass. Solution for deleted entries still needs work
Browse files Browse the repository at this point in the history
  • Loading branch information
axe312ger committed May 24, 2022
1 parent c5349f5 commit 9656127
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`gatsby-node stores rich text as raw with references attached 1`] = `
Array [
"ahntqop9oi7x___7oHxo6bs0us9wIkq27qdyK___Entry",
"ahntqop9oi7x___6KpLS2NZyB3KAvDzWf4Ukh___Entry",
"ahntqop9oi7x___4ZQrqcrTunWiuNaavhGYNT___Asset",
]
`;

exports[`gatsby-node stores rich text as JSON 2`] = `
Object {
"content": Array [
Expand Down Expand Up @@ -407,3 +399,11 @@ Object {
"nodeType": "document",
}
`;

exports[`gatsby-node stores rich text as raw with references attached 1`] = `
Array [
"ahntqop9oi7x___7oHxo6bs0us9wIkq27qdyK___Entry",
"ahntqop9oi7x___6KpLS2NZyB3KAvDzWf4Ukh___Entry",
"ahntqop9oi7x___4ZQrqcrTunWiuNaavhGYNT___Asset",
]
`;
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,15 @@ const createMockCache = () => {
const cache = createMockCache()

const exampleImage = {
defaultLocale: `en-US`,
file: {
url: `//images.ctfassets.net:443/k8iqpp6u0ior/3ljGfnpegOnBTFGhV07iC1/94257340bda15ad4ca8462da3a8afa07/347966-contentful-logo-wordmark-dark__1_-4cd185-original-1582664935__1_.png`,
fileName: `347966-contentful-logo-wordmark-dark (1)-4cd185-original-1582664935 (1).png`,
contentType: `image/png`,
details: {
size: 123456,
image: {
width: `1646`,
height: `338`,
},
},
sys: {
locale: `en-US`,
},
url: `https://images.ctfassets.net:443/k8iqpp6u0ior/3ljGfnpegOnBTFGhV07iC1/94257340bda15ad4ca8462da3a8afa07/347966-contentful-logo-wordmark-dark__1_-4cd185-original-1582664935__1_.png`,
fileName: `347966-contentful-logo-wordmark-dark (1)-4cd185-original-1582664935 (1).png`,
contentType: `image/png`,
size: 123456,
width: `1646`,
height: `338`,
internal: {
contentDigest: `unique`,
},
Expand Down

0 comments on commit 9656127

Please sign in to comment.