Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts committed Aug 18, 2022
1 parent c01806e commit ef07cbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ describe(`fetch-remote-file`, () => {
})
}, 60 * 1000)

// If a test fails here, it's possible that the image changed on Unsplash
it("should have the correct md5", async () => {
expect(
await md5File(
Expand All @@ -28,7 +27,7 @@ describe(`fetch-remote-file`, () => {
"public/images/50c58a791de3c2303e62084d731799eb/photoA.jpg"
)
)
).toEqual("a9e57a66a10b2d26a1999a4685d7c9ef")
).toEqual("37287aaa726d254eabcf3e7ede51a93b")
expect(
await md5File(
path.join(
Expand All @@ -37,7 +36,7 @@ describe(`fetch-remote-file`, () => {
"public/images/4910e745c3c453b8795d6ba65c79d99b/photoB.jpg"
)
)
).toEqual("c305dc5c5db45cc773231a507af5116d")
).toEqual("cef966aac5cfc7972e91e5c5c96829cb")
expect(
await md5File(
path.join(
Expand Down
6 changes: 3 additions & 3 deletions integration-tests/gatsby-pipeline/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ exports.sourceNodes = ({ actions, createNodeId, createContentDigest }) => {
const items = [
{
name: "photoA.jpg",
url: "https://images.unsplash.com/photo-1517849845537-4d257902454a?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=300&q=80",
url: "https://storage.googleapis.com/public-test-files/photoA.jpg",
},
{
name: "photoB.jpg",
url: "https://images.unsplash.com/photo-1552053831-71594a27632d?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=300&q=80",
url: "https://storage.googleapis.com/public-test-files/photoB.jpg",
},
{
name: "photoC.jpg",
url: "https://images.unsplash.com/photo-1561037404-61cd46aa615b?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=300&q=80",
url: "https://storage.googleapis.com/public-test-files/photoC.jpg",
},
]

Expand Down

0 comments on commit ef07cbf

Please sign in to comment.