We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 419eb31 commit 4c565a9Copy full SHA for 4c565a9
1 file changed
src/helper/ssg/ssg.test.tsx
@@ -280,6 +280,8 @@ describe('toSSG function', () => {
280
expect(content).toContain('<meta name="robots" content="noindex" />')
281
// Should contain link anchor
282
expect(content).toContain('<a href="/new">Redirecting from')
283
+ // Should contain a body element that includes the anchor
284
+ expect(content).toMatch(/<body[^>]*>[\s\S]*<a href=\"\/new\">[\s\S]*<\/body>/)
285
})
286
287
it('should skip generating a redirect HTML when 301/302 has no Location header', async () => {
0 commit comments