Unverified Commit 20b19b5e authored by JJ Kasper's avatar JJ Kasper Committed by GitHub
parent b5e8d653
...@@ -528,7 +528,13 @@ createNextDescribe( ...@@ -528,7 +528,13 @@ createNextDescribe(
? expect.stringMatching( ? expect.stringMatching(
/http:\/\/localhost:\d+\/opengraph\/static\/opengraph-image.png\?b76e8f0282c93c8e/ /http:\/\/localhost:\d+\/opengraph\/static\/opengraph-image.png\?b76e8f0282c93c8e/
) )
: 'https://example.com/opengraph/static/opengraph-image.png?b76e8f0282c93c8e', : expect.stringMatching(
new RegExp(
`https:\\/\\/(${
isNextDeploy ? '.*?\\.vercel\\.app' : 'example\\.com'
})\\/opengraph\\/static\\/opengraph-image.png\\?b76e8f0282c93c8e`
)
),
}) })
await match('meta', 'name', 'content', { await match('meta', 'name', 'content', {
...@@ -536,7 +542,13 @@ createNextDescribe( ...@@ -536,7 +542,13 @@ createNextDescribe(
? expect.stringMatching( ? expect.stringMatching(
/http:\/\/localhost:\d+\/opengraph\/static\/twitter-image.png\?b76e8f0282c93c8e/ /http:\/\/localhost:\d+\/opengraph\/static\/twitter-image.png\?b76e8f0282c93c8e/
) )
: 'https://example.com/opengraph/static/twitter-image.png?b76e8f0282c93c8e', : expect.stringMatching(
new RegExp(
`https:\\/\\/(${
isNextDeploy ? '.*?\\.vercel\\.app' : 'example\\.com'
})\\/opengraph\\/static\\/twitter-image.png\\?b76e8f0282c93c8e`
)
),
'twitter:image:alt': 'A alt txt for twitter', 'twitter:image:alt': 'A alt txt for twitter',
'twitter:card': 'summary_large_image', 'twitter:card': 'summary_large_image',
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment